/* ===== STRAWBERRY HILLS - MAIN STYLES ===== */

:root {
    /* Fresh green palette */
    --color-bg: #F7FAF8;
    --color-bg-light: #FAFCFB;
    --color-bg-accent: #EEF5F1;
    --color-bg-soft: #E8F0EB;
    --color-surface: #FBFDFC;

    /* Primary green tones */
    --color-primary: #5B8A72;
    --color-primary-light: #7BA894;
    --color-primary-lighter: #A8C9B8;
    --color-primary-soft: #D4E5DC;
    --color-primary-pale: #E9F2ED;
    --color-primary-dark: #3D6B54;

    /* Accent tones */
    --color-accent: #8FB59E;
    --color-accent-warm: #B8C9A8;
    --color-sage: #9CAF88;
    --color-mint: #B5D4C3;
    --color-forest: #4A6B5A;

    /* Premium gold accents */
    --color-gold: #C9A962;
    --color-gold-light: #D4BC7D;
    --color-gold-dark: #A8893D;
    --color-champagne: #F5E6C8;

    /* Text */
    --color-text: #2D3B33;
    --color-text-muted: #5A6B60;
    --color-text-light: #8A9A8F;
    --color-white: #FFFFFF;

    /* Neumorphic shadows - Enhanced */
    --shadow-neumorphic:
        20px 20px 50px rgba(90, 130, 105, 0.15),
        -20px -20px 50px rgba(255, 255, 255, 1);
    --shadow-neumorphic-soft:
        12px 12px 35px rgba(90, 130, 105, 0.12),
        -12px -12px 35px rgba(255, 255, 255, 0.95);
    --shadow-neumorphic-inset:
        inset 6px 6px 14px rgba(90, 130, 105, 0.12),
        inset -6px -6px 14px rgba(255, 255, 255, 1);
    --shadow-elevated:
        0 32px 80px -16px rgba(61, 107, 84, 0.18),
        0 16px 40px -8px rgba(61, 107, 84, 0.1);
    --shadow-card:
        0 12px 40px rgba(90, 130, 105, 0.1),
        0 4px 12px rgba(90, 130, 105, 0.05);
    --shadow-glow:
        0 0 60px rgba(139, 181, 158, 0.3);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', -apple-system, sans-serif;

    /* Neumorphic button shadows */
    --shadow-neumorphic-btn:
        8px 8px 20px rgba(90, 130, 105, 0.15),
        -8px -8px 20px rgba(255, 255, 255, 0.8),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(90, 130, 105, 0.1);
    --shadow-neumorphic-box:
        16px 16px 40px rgba(90, 130, 105, 0.18),
        -16px -16px 40px rgba(255, 255, 255, 1),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(90, 130, 105, 0.06);

    /* Animations */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-lighter);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1400px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(220, 230, 225, 0.6);
    box-shadow:
        0 8px 32px rgba(90, 130, 105, 0.12),
        0 2px 8px rgba(90, 130, 105, 0.08);
    transition: all 0.4s var(--ease-smooth);
}

.header.scrolled {
    top: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 12px 40px rgba(90, 130, 105, 0.15),
        0 4px 12px rgba(90, 130, 105, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 10px;
    box-shadow:
        inset 2px 2px 5px rgba(90, 130, 105, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.logo-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s var(--ease-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-sage);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.3s var(--ease-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header right side */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.header-phone:hover {
    color: var(--color-primary);
}

.header-phone svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.phone-text {
    font-size: 14px;
}

@media (max-width: 1100px) {
    .phone-text {
        display: none;
    }
}

/* Offer button neumorphic hover */
.header-offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 165, 75, 0.5),
                0 3px 10px rgba(212, 146, 46, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.header-offer-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(232, 165, 75, 0.3),
                0 1px 4px rgba(212, 146, 46, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 15px rgba(91, 138, 114, 0.25);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 138, 114, 0.35);
}

.header-cta svg {
    width: 16px;
    height: 16px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: var(--color-bg);
    padding: 4px;
    border-radius: 8px;
    box-shadow:
        inset 2px 2px 5px rgba(90, 130, 105, 0.08),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.lang-btn {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    background: transparent;
    color: var(--color-text-muted);
}

.lang-btn.active {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(90, 130, 105, 0.12);
}

.lang-btn:not(.active):hover {
    color: var(--color-text);
}

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

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s var(--ease-smooth);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 250, 248, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    padding: 120px 40px 40px;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-smooth), visibility 0.4s var(--ease-smooth);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav .nav-link {
    font-size: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-bg-accent);
    display: block;
    width: 100%;
}

.mobile-nav .lang-switch {
    margin-top: 16px;
    justify-content: center;
}

/* Mobile offer button */
.mobile-offer-btn {
    display: block;
    margin-top: 24px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #e8a54b, #d4922e);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    box-shadow:
        0 6px 20px rgba(232, 165, 75, 0.4),
        0 3px 10px rgba(212, 146, 46, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-offer-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(232, 165, 75, 0.5),
        0 4px 12px rgba(212, 146, 46, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mobile-offer-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(232, 165, 75, 0.3),
        0 1px 4px rgba(212, 146, 46, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg,
            rgba(247, 250, 248, 0.97) 0%,
            rgba(247, 250, 248, 0.85) 35%,
            rgba(247, 250, 248, 0.6) 55%,
            rgba(247, 250, 248, 0.3) 75%,
            transparent 100%
        );
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image:
        radial-gradient(circle at 20% 30%, var(--color-primary-soft) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--color-mint) 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: stretch;
    padding: 160px 0 100px;
}

.hero-text {
    animation: fadeInUp 1s var(--ease-smooth) 0.2s both;
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--color-white);
    border-radius: 50px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-neumorphic-soft);
}

.hero-badge-icon {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: 50%;
    animation: pulse 2.5s infinite;
    flex-shrink: 0;
}

.hero-badge-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 28px;
}

.hero-title span {
    color: var(--color-primary);
    font-style: italic;
}

.hero-description {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 48px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 20px 40px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: white;
    box-shadow:
        0 12px 40px rgba(91, 138, 114, 0.35),
        0 6px 16px rgba(91, 138, 114, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(91, 138, 114, 0.4),
        0 10px 24px rgba(91, 138, 114, 0.25);
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-neumorphic-btn);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    background: var(--color-white);
}

/* Neumorphic button style */
.btn-neumorphic {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-neumorphic-btn);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-neumorphic:hover {
    transform: translateY(-3px);
    box-shadow:
        10px 10px 24px rgba(90, 130, 105, 0.18),
        -10px -10px 24px rgba(255, 255, 255, 0.85);
}

.btn-neumorphic:active {
    transform: translateY(0);
    box-shadow: var(--shadow-neumorphic-inset);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-smooth);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Hero Info Cards */
.hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInRight 1s var(--ease-smooth) 0.5s both;
    justify-content: space-between;
    padding-top: 52px; /* Align with title top */
}

.hero-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 28px 32px;
    border-radius: 20px;
    box-shadow:
        14px 14px 35px rgba(90, 130, 105, 0.15),
        -14px -14px 35px rgba(255, 255, 255, 1),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -1px -1px 3px rgba(90, 130, 105, 0.05);
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s var(--ease-smooth);
    flex: 1;
}

.hero-info-card:hover {
    transform: translateX(-8px) translateY(-4px);
    box-shadow:
        18px 18px 45px rgba(90, 130, 105, 0.2),
        -18px -18px 45px rgba(255, 255, 255, 1),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -1px -1px 3px rgba(90, 130, 105, 0.05);
}

.info-card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-bg);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        inset 4px 4px 10px rgba(90, 130, 105, 0.1),
        inset -4px -4px 10px rgba(255, 255, 255, 0.95);
}

.info-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.info-card-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.info-card-content p {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 1s var(--ease-smooth) 1s both;
}

.scroll-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    animation: scrollBounce 2s infinite;
}

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

/* ===== PAGE HEADER (for inner pages) ===== */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-accent) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, var(--color-primary-soft) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, var(--color-mint) 0%, transparent 40%);
    opacity: 0.3;
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header .section-subtitle {
    margin-bottom: 16px;
}

.page-header .section-title {
    margin-bottom: 20px;
}

.page-header-description {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 13px;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: var(--color-text-light);
}

.breadcrumbs-separator {
    color: var(--color-text-light);
}

/* ===== SECTION STYLES ===== */
.section {
    padding: clamp(80px, 12vw, 140px) 0;
}

.section-white {
    background: var(--color-white);
}

.section-light {
    background: var(--color-bg-light);
}

.section-accent {
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-accent) 100%);
}

.section-dark {
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 181, 158, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(181, 212, 195, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(56px, 8vw, 90px);
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary-lighter), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.2;
}

.section-dark .section-subtitle {
    color: var(--color-mint);
}

.section-dark .section-subtitle::before,
.section-dark .section-subtitle::after {
    background: linear-gradient(90deg, transparent, rgba(181, 212, 195, 0.5), transparent);
}

.section-dark .section-title {
    color: var(--color-white);
}

/* ===== INTRO SECTION ===== */
.intro {
    padding: clamp(80px, 12vw, 140px) 0;
    background: var(--color-white);
    position: relative;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 10vw, 120px);
    align-items: center;
}

.intro-image {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.intro-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(45, 59, 51, 0.3) 100%);
}

.intro-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--color-white);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.intro-text h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 28px;
    line-height: 1.2;
}

.intro-text p {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.intro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--color-primary-pale);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.intro-feature svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto auto auto); /* 2 rows x 3 elements: icon, title, text */
    gap: 36px 36px;
    align-items: start;
}

.feature-card {
    background: var(--color-white);
    padding: clamp(36px, 4vw, 52px);
    border-radius: 28px;
    box-shadow: var(--shadow-neumorphic);
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: var(--color-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.4s var(--ease-smooth);
    box-shadow:
        inset 5px 5px 12px rgba(90, 130, 105, 0.1),
        inset -5px -5px 12px rgba(255, 255, 255, 0.95);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: 0 12px 32px rgba(91, 138, 114, 0.3);
    transform: scale(1.05);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    transition: color 0.4s var(--ease-smooth);
}

.feature-card:hover .feature-icon svg {
    color: white;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 16px;
    align-self: start;
}

.feature-text {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.75;
    align-self: start;
}

/* ===== APARTMENTS GRID ===== */
.apartments-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(50px, 8vw, 100px);
    align-items: center;
    margin-bottom: clamp(60px, 10vw, 100px);
}

.apartments-text h2 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.2;
}

.apartments-text p {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.85;
}

.apartments-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--color-bg-light);
    padding: 36px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-neumorphic-soft);
    transition: all 0.4s var(--ease-smooth);
    border: 1px solid var(--color-primary-pale);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--color-primary-lighter);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Apartment Cards */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.apartment-card {
    background: var(--color-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-neumorphic-box);
    transition: all 0.5s var(--ease-smooth);
    cursor: pointer;
    border: 1px solid rgba(220, 230, 225, 0.6);
    text-decoration: none;
    display: block;
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow:
        16px 16px 40px rgba(90, 130, 105, 0.15),
        -16px -16px 40px rgba(255, 255, 255, 0.9);
    border-color: var(--color-primary-lighter);
}

.apartment-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.apartment-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-white);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.apartment-content {
    padding: 28px;
}

.apartment-type {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 14px;
}

.apartment-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.apartment-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.apartment-spec svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.apartment-area {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.apartment-area span {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-light);
}

/* ===== INFRASTRUCTURE GRID ===== */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.infra-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: clamp(36px, 4vw, 52px);
    display: flex;
    gap: 28px;
    transition: all 0.4s var(--ease-smooth);
}

.infra-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.infra-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 16px 40px rgba(139, 181, 158, 0.3);
}

.infra-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.infra-content {
    flex: 1;
}

.infra-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: white;
    margin-bottom: 14px;
}

.infra-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 24px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.gallery-item:nth-child(1) { grid-column: span 5; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 5; }
.gallery-item:nth-child(6) { grid-column: span 3; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(45, 59, 51, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    z-index: 1;
}

.gallery-item::after {
    content: 'Смотреть';
    position: absolute;
    bottom: 28px;
    left: 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s var(--ease-smooth);
    z-index: 2;
}

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

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery page - full grid */
.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-full-grid .gallery-item {
    height: 300px;
    border-radius: 20px;
}

@media (min-width: 992px) {
    .gallery-full-grid .gallery-item {
        height: 340px;
    }
}

@media (min-width: 1200px) {
    .gallery-full-grid .gallery-item {
        height: 380px;
    }
}

/* Gallery Section Title */
.gallery-section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 32px;
    margin-top: 80px;
}

.gallery-section-title:first-of-type {
    margin-top: 0;
}

/* Gallery Section Cards - Vertical Layout */
.gallery-sections {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.gallery-section-card {
    background: var(--color-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-neumorphic-box);
    transition: all 0.4s var(--ease-smooth);
    display: grid;
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .gallery-section-card {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-section-card {
        border-radius: 16px;
    }
}

@media (min-width: 992px) {
    .gallery-section-card {
        grid-template-columns: 1.5fr 1fr;
    }
}

.gallery-section-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

.gallery-section-preview {
    position: relative;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px 20px 0 0;
}

@media (min-width: 640px) {
    .gallery-section-preview {
        height: 380px;
    }
}

@media (min-width: 768px) {
    .gallery-section-preview {
        height: 420px;
    }
}

@media (min-width: 992px) {
    .gallery-section-preview {
        height: 480px;
        border-radius: 0;
    }
}

@media (min-width: 1200px) {
    .gallery-section-preview {
        height: 520px;
    }
}

@media (min-width: 1400px) {
    .gallery-section-preview {
        height: 550px;
    }
}

.gallery-section-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

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

.gallery-section-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(45, 59, 51, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    z-index: 1;
}

.gallery-section-preview:hover::before {
    opacity: 1;
}

.gallery-section-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 59, 51, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 16px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

.gallery-section-counter svg {
    width: 18px;
    height: 18px;
}

.gallery-section-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-smooth);
    z-index: 2;
}

.gallery-section-preview:hover .gallery-section-btn {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .gallery-section-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-section-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .gallery-section-content {
        padding: 50px;
    }
}

.gallery-section-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .gallery-section-content h3 {
        font-size: 36px;
    }
}

.gallery-section-text {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Emphasized italic text */
.text-emphasis {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text);
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(50px, 8vw, 100px);
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-map {
    flex: 1;
    min-height: 300px;
    border-radius: 24px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 50px);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.2;
}

.contact-text {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-smooth);
    box-shadow:
        8px 8px 20px rgba(90, 130, 105, 0.12),
        -8px -8px 20px rgba(255, 255, 255, 1),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: 0 8px 24px rgba(91, 138, 114, 0.25);
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
    transition: color 0.3s var(--ease-smooth);
}

.contact-item:hover .contact-icon svg {
    color: white;
}

.contact-item-content {
    flex: 1;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.contact-value {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

a.contact-value:hover {
    color: var(--color-primary);
}

/* Map */
.contact-map {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 520px;
    border: none;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    background: linear-gradient(180deg, transparent, rgba(45, 59, 51, 0.9));
}

.map-address {
    color: white;
}

.map-address-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

.map-address-value {
    font-family: var(--font-display);
    font-size: 26px;
}

/* Contact page full width map */
.map-full {
    height: 500px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    margin-top: 60px;
}

.map-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== PLAN PAGE ===== */
.plan-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.plan-image img {
    width: 100%;
    height: auto;
    display: block;
}

.plan-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-text {
    font-size: 15px;
    color: var(--color-text);
}

/* ===== PRODUCT PAGE ===== */
.product-hero {
    padding: 140px 0 60px;
    background: var(--color-bg-light);
}

.product-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.product-main-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.product-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-thumb {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.3s var(--ease-smooth);
}

.product-thumb:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-elevated);
}

.product-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 48px;
    justify-items: stretch;
}

.product-details,
.product-main {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0;
}

.product-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 24px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.product-description {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 36px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Neumorphic Feature Tags (Plateau Effect) */
.product-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--color-bg);
    border-radius: 16px;
    box-shadow:
        8px 8px 18px rgba(90, 130, 105, 0.12),
        -8px -8px 18px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(255, 255, 255, 0.7),
        inset -2px -2px 4px rgba(90, 130, 105, 0.08);
    border: 1px solid rgba(220, 230, 225, 0.8);
    transition: all 0.3s var(--ease-smooth);
}

.product-feature:hover {
    box-shadow:
        6px 6px 14px rgba(90, 130, 105, 0.15),
        -6px -6px 14px rgba(255, 255, 255, 0.85),
        inset 3px 3px 6px rgba(255, 255, 255, 0.8),
        inset -3px -3px 6px rgba(90, 130, 105, 0.1);
    transform: translateY(-3px);
}

.product-feature svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.product-feature span {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.product-sidebar {
    background: var(--color-white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-neumorphic);
    position: sticky;
    top: 120px;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    align-self: start;
    justify-self: end;
}

.product-area {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-bg-accent);
}

.product-area-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.product-area-value {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    color: var(--color-primary);
}

.product-area-value span {
    font-size: 20px;
    color: var(--color-text-muted);
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.product-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-bg-accent);
}

.product-spec-item:last-child {
    border-bottom: none;
}

.product-spec-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.product-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
}

/* Compact Product Gallery with Counter */
.product-gallery-compact {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    cursor: pointer;
}

.product-gallery-compact img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}

/* Product gallery compact - responsive heights */
@media (max-width: 1200px) {
    .product-gallery-compact img {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .product-gallery-compact img {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .product-gallery-compact img {
        height: 380px;
    }

    .product-gallery-compact {
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .product-gallery-compact img {
        height: 320px;
    }

    .product-gallery-compact {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .product-gallery-compact img {
        height: 280px;
    }
}

.product-gallery-compact:hover img {
    transform: scale(1.03);
}

.product-gallery-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(45, 59, 51, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
}

.product-gallery-compact:hover::before {
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(45, 59, 51, 0.6) 100%
    );
}

/* Photo Counter Badge */
.photo-counter {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s var(--ease-smooth);
}

.product-gallery-compact:hover .photo-counter {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.photo-counter-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.photo-counter-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.photo-counter-text span {
    color: var(--color-primary);
    font-size: 18px;
}

/* View Gallery Button */
.view-gallery-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 14px;
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 32px rgba(91, 138, 114, 0.4);
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.product-gallery-compact:hover .view-gallery-btn {
    background: var(--color-primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(91, 138, 114, 0.5);
}

.view-gallery-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .view-gallery-btn {
        opacity: 1;
    }
}

/* Mini Thumbnails Preview */
.mini-thumbs {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.mini-thumb {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.mini-thumb:hover {
    transform: scale(1.1);
    border-color: white;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-thumb-more {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    background: rgba(45, 59, 51, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.mini-thumb-more:hover {
    background: rgba(91, 138, 114, 0.9);
    border-color: white;
    transform: scale(1.1);
}

/* Mini thumbs tablet - medium screens */
@media (max-width: 992px) {
    .mini-thumbs {
        top: 16px;
        right: 16px;
        gap: 6px;
    }

    .mini-thumb,
    .mini-thumb-more {
        width: 52px;
        height: 39px;
        border-radius: 6px;
    }

    .mini-thumb-more {
        font-size: 12px;
    }
}

/* Mini thumbs mobile - small screens */
@media (max-width: 640px) {
    .mini-thumbs {
        top: 12px;
        right: 12px;
        gap: 4px;
    }

    .mini-thumb,
    .mini-thumb-more {
        width: 44px;
        height: 33px;
        border-radius: 6px;
        border-width: 1.5px;
    }

    .mini-thumb-more {
        font-size: 11px;
    }
}

/* Hidden gallery data container */
.gallery-images-data {
    display: none;
}

@media (max-width: 992px) {
    .product-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .product-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== FOOTER ===== */
.footer {
    padding: 70px 0;
    background: var(--color-text);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-logo .logo {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

.footer-logo .logo-subtitle {
    color: var(--color-primary-light);
}

.footer-logo .logo-title {
    color: white;
}

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(91, 138, 114, 0.35);
}

.social-link svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s var(--ease-smooth);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LIGHTBOX - Modern Fullscreen Design ===== */
/* Uses dvh/svh for proper mobile viewport handling */

.lightbox {
    /* Hidden by default */
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;

    /* Background */
    background: rgba(10, 15, 12, 0.98);

    /* Prevent scroll on body */
    overflow: hidden;

    /* Touch behavior */
    touch-action: none;
    -webkit-overflow-scrolling: touch;

    /* Safe area padding for notched devices */
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.lightbox.active {
    /* CSS Grid for perfect centering */
    display: grid;
    place-items: center;

    /* Fallback height */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height - accounts for mobile browser chrome */
}

/* Main container - uses grid layout */
.lightbox-content {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 16px;

    /* Sizing with safe margins */
    width: calc(100vw - 120px); /* Space for nav buttons */
    max-width: 1200px;

    /* Height with dvh */
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    max-height: 800px;

    /* Centering content */
    place-items: center;

    /* Animation base */
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Image container - fills available space */
.lightbox-content img,
#lightbox-img {
    /* Fill container while maintaining aspect ratio */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    /* Proper object sizing */
    object-fit: contain;
    object-position: center;

    /* Visual styling */
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Smooth transitions */
    transition: transform 0.2s ease, opacity 0.2s ease;

    /* Prevent image dragging */
    user-select: none;
    -webkit-user-drag: none;
}

/* Close button - absolute positioned in lightbox */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;

    /* Safe area aware */
    top: max(20px, env(safe-area-inset-top, 20px));
    right: max(20px, env(safe-area-inset-right, 20px));

    /* Size */
    width: 48px;
    height: 48px;

    /* Styling */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Interactive */
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-close:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
    color: white;
    stroke-width: 2.5;
}

/* Navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    /* Size */
    width: 52px;
    height: 52px;

    /* Styling */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Interactive */
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.lightbox-nav:hover,
.lightbox-nav:active {
    background: var(--color-primary, #4a7c59);
    border-color: var(--color-primary, #4a7c59);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2.5;
}

.lightbox-prev {
    left: 20px;
    left: max(20px, env(safe-area-inset-left, 20px));
}

.lightbox-next {
    right: 20px;
    right: max(20px, env(safe-area-inset-right, 20px));
}

/* Counter badge */
.lightbox-counter {
    /* Positioning within grid */
    justify-self: center;

    /* Styling */
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Tablet (1024px and below) ===== */
@media (max-width: 1024px) {
    .lightbox-content {
        width: calc(100vw - 100px);
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        gap: 12px;
    }

    .lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .lightbox-nav svg {
        width: 22px;
        height: 22px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

/* ===== Mobile (768px and below) ===== */
@media (max-width: 768px) {
    .lightbox.active {
        /* Use svh for iOS Safari - accounts for shrinking address bar */
        height: 100svh;
    }

    .lightbox-content {
        /* Full width minus minimal padding */
        width: calc(100vw - 24px);

        /* Height with svh fallback chain */
        height: calc(100vh - 100px);
        height: calc(100svh - 100px);

        gap: 12px;
    }

    .lightbox-content img,
    #lightbox-img {
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .lightbox-close {
        top: max(12px, env(safe-area-inset-top, 12px));
        right: max(12px, env(safe-area-inset-right, 12px));
        width: 44px;
        height: 44px;
    }

    .lightbox-close svg {
        width: 20px;
        height: 20px;
    }

    /* Hide nav buttons on mobile - use swipe */
    .lightbox-nav {
        display: none;
    }

    .lightbox-counter {
        font-size: 13px;
        padding: 8px 20px;
    }
}

/* ===== Small Mobile (480px and below) ===== */
@media (max-width: 480px) {
    .lightbox-content {
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        height: calc(100svh - 80px);
        gap: 10px;
    }

    .lightbox-content img,
    #lightbox-img {
        border-radius: 6px;
    }

    .lightbox-close {
        top: max(10px, env(safe-area-inset-top, 10px));
        right: max(10px, env(safe-area-inset-right, 10px));
        width: 40px;
        height: 40px;
    }

    .lightbox-close svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-counter {
        font-size: 12px;
        padding: 6px 16px;
    }
}

/* ===== Landscape mobile ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .lightbox-content {
        width: calc(100vw - 140px);
        height: calc(100vh - 40px);
        height: calc(100dvh - 40px);
        gap: 8px;
    }

    .lightbox-nav {
        display: flex;
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }

    .lightbox-counter {
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* ===== High DPI / Retina displays ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .lightbox-content img,
    #lightbox-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto auto auto); /* 3 rows for 6 cards */
    }

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

    /* Product page - smaller sidebar on tablets */
    .product-info {
        grid-template-columns: 1fr 290px;
        gap: 30px;
    }

    .product-sidebar {
        padding: 24px;
        max-width: 290px;
    }

    .product-area-value {
        font-size: 36px;
    }

    .product-area-value span {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .product-info {
        grid-template-columns: 1fr 260px;
        gap: 24px;
    }

    .product-sidebar {
        padding: 20px;
        max-width: 260px;
    }

    .product-area-value {
        font-size: 32px;
    }

    .product-area-value span {
        font-size: 16px;
    }

    .product-spec-label {
        font-size: 12px;
    }

    .product-spec-value {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .header {
        width: calc(100% - 32px);
        top: 12px;
    }

    .header-inner {
        padding: 12px 20px;
    }

    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-badge-text {
        font-size: 14px;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-info-card {
        flex: 1;
        min-width: 280px;
    }

    .hero-info-card:hover {
        transform: translateY(-8px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto; /* Reset for single column */
    }

    .features-grid .feature-card {
        grid-row: auto;
        grid-template-rows: auto auto auto;
    }

    .apartments-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

    .infra-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 280px);
        gap: 20px;
    }

    .gallery-item {
        border-radius: 16px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }

    .product-info {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        position: static;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        flex-direction: row;
    }

    .product-thumb {
        flex: 1;
    }

    .product-thumb img {
        height: 120px;
    }
}

@media (max-width: 640px) {
    .apartments-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .gallery-full-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 260px);
        gap: 16px;
    }

    .gallery-item {
        border-radius: 14px;
    }

    .apartments-stats {
        grid-template-columns: 1fr;
    }

    .infra-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-info {
        flex-direction: column;
    }

    .hero-info-card {
        min-width: 100%;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile styles - 768px */
@media (max-width: 768px) {
    /* Reduce section spacing */
    .section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    /* Reduce gaps between elements */
    .features-grid,
    .infra-grid {
        gap: 16px;
    }

    /* Hero info cards - center content */
    .hero-info {
        gap: 12px;
    }

    .hero-info-card {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 20px 16px;
        gap: 8px;
    }

    .info-card-icon {
        margin: 0 auto 8px;
        width: 52px;
        height: 52px;
    }

    .info-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .info-card-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .info-card-value {
        font-size: 32px;
    }

    .info-card-label {
        font-size: 10px;
    }

    /* Feature tags - center and add neumorphic shadows */
    .intro-feature {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        box-shadow:
            6px 6px 14px rgba(90, 130, 105, 0.1),
            -6px -6px 14px rgba(255, 255, 255, 0.8);
    }

    .intro-features {
        justify-content: center;
    }

    /* Infrastructure cards - center icons */
    .infra-card {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .infra-icon {
        margin: 0 auto 20px;
    }

    .infra-content {
        text-align: center;
    }

    /* Section spacing reductions */
    .intro {
        padding: 40px 0;
    }

    .intro-content {
        gap: 32px;
    }

    .intro-features {
        gap: 12px;
        margin-top: 24px;
    }

    /* Feature cards spacing */
    .feature-card {
        padding: 28px 24px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .feature-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    /* Apartments section */
    .apartments-intro {
        gap: 32px;
        margin-bottom: 40px;
    }

    .apartments-stats {
        gap: 16px;
    }

    .stat-card {
        padding: 24px;
    }

    /* Contact section */
    .contact-wrapper {
        gap: 32px;
    }

    .contact-text {
        margin-bottom: 32px;
    }

    .contact-details {
        gap: 20px;
    }

    /* Gallery section */
    .gallery-grid {
        gap: 12px;
    }

    .gallery-sections {
        gap: 32px;
    }

    .gallery-section-content {
        padding: 24px;
    }
}

/* ===== PREMIUM EFFECTS ===== */

/* Custom Cursor - Disabled */

/* Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary-dark);
    z-index: 10000;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-text {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 32px);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    text-align: center;
    white-space: nowrap;
}

.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
    pointer-events: auto;
}

.page-transition.active .page-transition-text {
    opacity: 1;
    transform: translateY(0);
}

.page-transition-out {
    transform-origin: top;
    transform: scaleY(1);
}

.page-transition-out.active {
    transform: scaleY(0);
    transform-origin: bottom;
}

/* Page load animation */
body {
    opacity: 0;
    animation: pageLoad 0.8s ease-out 0.2s forwards;
}

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

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-reveal span:nth-child(2) { animation-delay: 0.1s; }
.text-reveal span:nth-child(3) { animation-delay: 0.2s; }
.text-reveal span:nth-child(4) { animation-delay: 0.3s; }

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

/* Split text animation for hero */
.hero-title .word {
    display: inline-block;
    overflow: hidden;
}

.hero-title .word span {
    display: inline-block;
    transform: translateY(120%);
    animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .word:nth-child(2) span { animation-delay: 0.15s; }
.hero-title .word:nth-child(3) span { animation-delay: 0.3s; }

@keyframes wordReveal {
    to {
        transform: translateY(0);
    }
}

/* Emphasized italic text for premium feel */
.text-italic-accent {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-gold-dark);
}

/* 3D Card Hover Effect */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Apartment card 3D tilt */
.apartment-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.apartment-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

/* Premium shine effect on cards */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: none;
    pointer-events: none;
}

.card-shine:hover::before {
    animation: shine 0.8s ease-out;
}

@keyframes shine {
    to {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Ken Burns Effect for Gallery */
.ken-burns {
    overflow: hidden;
}

.ken-burns img {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* Magnetic button effect - handled by JS */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-btn .btn-text {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Smooth scroll reveal enhancements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }

/* Stagger animation for grids */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
}

.stagger-item.visible {
    animation: staggerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Premium hover glow */
.hover-glow {
    position: relative;
}

.hover-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-primary-light));
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
}

.hover-glow:hover::after {
    opacity: 0.4;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Premium underline effect */
.premium-underline {
    position: relative;
    display: inline-block;
}

.premium-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Parallax scroll effect */
.parallax-bg {
    will-change: transform;
}

/* Image zoom on scroll */
.zoom-on-scroll {
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-on-scroll.in-view {
    transform: scale(1.05);
}

/* Drag scroll gallery */
.drag-scroll {
    cursor: grab;
    user-select: none;
}

.drag-scroll:active {
    cursor: grabbing;
}

.drag-scroll.dragging {
    scroll-behavior: auto;
}

/* Premium badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

/* Gold accent button */
.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: white;
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 12px 32px rgba(201, 169, 98, 0.4);
    transform: translateY(-3px);
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Noise texture overlay for premium feel */
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* ========== Offer Floating Button ========== */
.offer-fab {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #5B8A72, #3D6B54);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 99999 !important;
    box-shadow: 0 8px 32px rgba(91, 138, 114, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

.offer-fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(91, 138, 114, 0.5);
}

.offer-fab svg {
    width: 20px;
    height: 20px;
}

.offer-fab-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .offer-fab {
        bottom: 16px;
        right: 16px;
        padding: 14px 20px;
        font-size: 13px;
    }
}

/* ========== Offer Modal ========== */
.offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.offer-modal.active {
    display: flex;
}

.offer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 30, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.offer-modal-content {
    position: relative;
    background: var(--color-bg);
    border-radius: 32px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-neumorphic);
    animation: modalSlideUp 0.4s var(--ease-smooth);
}

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

.offer-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neumorphic-sm);
    transition: all 0.3s ease;
    z-index: 10;
}

.offer-modal-close:hover {
    transform: scale(1.1);
}

.offer-modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
}

.offer-modal-header {
    padding: 40px 40px 24px;
    text-align: center;
    border-bottom: 1px solid var(--color-bg-accent);
}

.offer-modal-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 16px;
}

.offer-modal-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.offer-modal-subtitle {
    font-size: 15px;
    color: var(--color-text-muted);
}

.offer-modal-body {
    padding: 32px 40px;
}

.offer-price-block {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow-neumorphic-sm);
}

.offer-price-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.offer-price-value {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.offer-price-note {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.offer-includes h3,
.offer-extras h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 12px;
}

.offer-extras-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.offer-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-bg-accent);
    font-size: 15px;
    color: var(--color-text);
}

.offer-list li:last-child {
    border-bottom: none;
}

.offer-list li svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.offer-extras-grid {
    display: grid;
    gap: 12px;
}

.offer-extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-surface);
    border-radius: 14px;
    box-shadow: var(--shadow-neumorphic-inset);
}

.offer-extra-name {
    font-size: 14px;
    color: var(--color-text);
}

.offer-extra-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.offer-modal-footer {
    padding: 24px 40px 40px;
    text-align: center;
    border-top: 1px solid var(--color-bg-accent);
}

.offer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(91, 138, 114, 0.3);
    transition: all 0.3s ease;
}

.offer-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(91, 138, 114, 0.4);
}

.offer-cta-btn svg {
    width: 18px;
    height: 18px;
}

.offer-contact {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.offer-contact a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .offer-modal-content {
        border-radius: 24px;
        max-height: 85vh;
    }

    .offer-modal-header {
        padding: 32px 24px 20px;
    }

    .offer-modal-title {
        font-size: 24px;
    }

    .offer-modal-body {
        padding: 24px;
    }

    .offer-price-value {
        font-size: 36px;
    }

    .offer-modal-footer {
        padding: 20px 24px 32px;
    }

    .offer-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PRODUCT PAGE MOBILE FIXES ===== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow on product pages */
    .product-hero {
        overflow-x: hidden;
    }

    .product-hero .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Product info - single column on mobile */
    .product-info {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Product title - allow wrapping on mobile */
    .product-title {
        white-space: normal;
        word-wrap: break-word;
        font-size: clamp(24px, 6vw, 32px);
    }

    /* Product details - proper width */
    .product-details {
        width: 100%;
        max-width: 100%;
    }

    /* Product description - proper wrapping */
    .product-description {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Product features - single column on smaller screens */
    .product-features {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .product-feature {
        padding: 14px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-feature span {
        font-size: 13px;
    }

    /* Product sidebar - full width and no margin */
    .product-sidebar {
        position: static;
        margin-left: 0;
        margin-top: 0;
        padding: 28px 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Breadcrumbs - compact on mobile */
    .breadcrumbs {
        font-size: 11px;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    .breadcrumbs-separator {
        flex-shrink: 0;
    }

    /* Photo counter and View Gallery buttons - equal sizes and spacing */
    .photo-counter,
    .view-gallery-btn {
        bottom: 16px;
        padding: 12px 16px;
        border-radius: 12px;
        min-width: 120px;
        justify-content: center;
    }

    .photo-counter {
        left: 16px;
    }

    .view-gallery-btn {
        right: 16px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .photo-counter-icon {
        width: 20px;
        height: 20px;
    }

    .photo-counter-text {
        font-size: 13px;
    }

    .photo-counter-text span {
        font-size: 15px;
    }

    .view-gallery-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Contact button - one line */
    .product-sidebar .btn-primary {
        white-space: nowrap;
        padding: 16px 20px;
        font-size: 14px;
    }

    /* Product spec value - allow wrapping for location */
    .product-spec-value {
        text-align: right;
        white-space: normal;
        word-wrap: break-word;
        max-width: 60%;
    }

    /* Product area value - smaller on mobile */
    .product-area-value {
        font-size: 40px;
    }

    .product-area-value span {
        font-size: 20px;
    }

    /* Footer logo - same line */
    .footer-logo .logo {
        flex-direction: row !important;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .footer-logo .logo-subtitle,
    .footer-logo .logo-title {
        display: inline;
        white-space: nowrap;
    }

    .footer-logo .logo-subtitle {
        font-size: 9px;
    }

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

/* Extra small screens - 480px and below */
@media (max-width: 480px) {
    .product-title {
        font-size: 22px;
    }

    .product-sidebar {
        padding: 24px 20px;
    }

    .product-area-value {
        font-size: 36px;
    }

    .product-feature {
        padding: 12px 14px;
    }

    .product-feature span {
        font-size: 12px;
    }

    .photo-counter,
    .view-gallery-btn {
        min-width: auto;
        padding: 10px 14px;
        gap: 8px;
    }

    .photo-counter {
        left: 12px;
        bottom: 12px;
    }

    .view-gallery-btn {
        right: 12px;
        bottom: 12px;
        font-size: 10px;
    }

    .photo-counter-icon {
        width: 18px;
        height: 18px;
    }

    .photo-counter-text {
        font-size: 12px;
    }

    .photo-counter-text span {
        font-size: 13px;
    }
}

/* Extra small screens - 380px and below */
@media (max-width: 380px) {
    .photo-counter,
    .view-gallery-btn {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .photo-counter {
        left: 8px;
        bottom: 8px;
    }

    .view-gallery-btn {
        right: 8px;
        bottom: 8px;
        font-size: 9px;
    }

    .photo-counter-icon {
        width: 16px;
        height: 16px;
    }

    .photo-counter-text {
        font-size: 11px;
    }

    .photo-counter-text span {
        font-size: 12px;
    }

    .mini-thumbs {
        display: none;
    }

    .product-gallery-compact img {
        height: 240px;
    }
}
