/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Motion */
.fade-in {
    animation: fade-in 0.3s ease-out;
}

.animate-slow-pan {
    animation: slow-pan 15s ease-in-out infinite alternate;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slow-pan {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@keyframes shimmer {
    to { left: 200%; }
}

/* Header dropdown */
.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* FAQ accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 500px;
    opacity: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Apartment / townhouse comparison */
.comparison-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.comparison-townhouse {
    border-color: #ccebd8;
    background: linear-gradient(135deg, #f4fbf7 0%, #edf8f1 45%, #fff 100%);
}

.comparison-image {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: #f1f5f9;
}

.comparison-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.comparison-image-placeholder img,
.comparison-image-placeholder video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-image-placeholder i {
    font-size: 48px;
}

.comparison-image-placeholder span {
    font-size: 14px;
    font-weight: 600;
}

.comparison-image-townhouse .comparison-image-placeholder {
    color: #5d9c76;
    background: linear-gradient(135deg, #edf8f1, #e3f3e9);
}

.comparison-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: rgba(14, 111, 70, 0.95);
    box-shadow: 0 8px 25px rgba(15, 81, 54, 0.25);
    font-size: 13px;
    font-weight: 700;
}

.comparison-badge i {
    font-size: 17px;
}

.comparison-content {
    padding: 28px 30px 30px;
}

.comparison-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.comparison-title h3 {
    margin: 0;
    color: #1e293b;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.2;
}

.comparison-icon {
    display: flex;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.comparison-icon i {
    font-size: 26px;
}

.comparison-icon-gray {
    color: #64748b;
    background: #f1f5f9;
}

.comparison-icon-green {
    color: #168653;
    background: #dff3e7;
}

.comparison-label {
    display: block;
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.comparison-label-green {
    color: #168653;
}

.comparison-list {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 15px;
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.comparison-list li i {
    display: flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.comparison-list-negative li i {
    color: #ef4444;
    background: #fff1f2;
}

.comparison-list-positive li {
    color: #315443;
}

.comparison-list-positive li i {
    color: #15803d;
    background: #dcfce7;
}

/* About and contact pages */
.bg-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.image-placeholder {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.image-placeholder::after {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    content: '';
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@media (max-width: 768px) {
    .comparison-image { height: 300px; }
    .comparison-content { padding: 22px; }
    .comparison-title { gap: 12px; margin-bottom: 22px; }
    .comparison-icon { width: 48px; height: 48px; border-radius: 14px; }
    .comparison-icon i { font-size: 23px; }
    .comparison-title h3 { font-size: 20px; }
    .comparison-list { gap: 13px; }
    .comparison-list li { font-size: 14px; }
    .comparison-badge { bottom: 12px; left: 12px; padding: 8px 11px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in,
    .animate-slow-pan,
    .image-placeholder::after { animation: none; }
    .dropdown-menu,
    .faq-content,
    .faq-icon,
    .comparison-card { transition: none; }
}

