:root {
    --color-primary: #0f172a;
    --color-on-primary: #ffffff;
    --color-brand-gold: #f59e0b;
    --color-brand-gold-deep: #d97706;
    --color-brand-gold-light: #fef3c7;
    --color-brand-gold-dark: #78350f;
    --color-canvas: #ffffff;
    --color-surface: #f8fafc;
    --color-hairline: #e2e8f0;
    --color-ink: #0f172a;
    --color-charcoal: #334155;
    --color-slate: #64748b;
    --color-steel: #94a3b8;
    --color-footer-bg: #0f172a;
    --shadow-card: 0 4px 12px 0 rgba(15, 23, 42, 0.06);
    --shadow-mockup: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reveal {
    opacity: 1;
    transform: none;
}

.reveal-left {
    opacity: 1;
    transform: none;
}

.reveal-right {
    opacity: 1;
    transform: none;
}

.hero-fade {
    opacity: 0;
    transform: translateY(20px);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-mockup);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    will-change: transform;
    transition: background-color 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    background-color: var(--color-charcoal);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    background-color: transparent;
    color: var(--color-ink);
    border-radius: 9999px;
    border: 1px solid var(--color-hairline);
    cursor: pointer;
    text-decoration: none;
    will-change: transform;
    transition: border-color 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    transform: translateY(-1px);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    background-color: var(--color-brand-gold);
    color: var(--color-primary);
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    will-change: transform;
    transition: background-color 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-gold:hover {
    background-color: var(--color-brand-gold-deep);
    transform: translateY(-2px);
}

.btn-gold:active {
    transform: translateY(0) scale(0.98);
}

@property-card {
    transition: all 0.3s ease;
}

@property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-mockup);
}

.nav-link {
    position: relative;
}

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

.nav-link:hover::after {
    width: 60%;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--color-canvas);
    color: var(--color-ink);
    border: 1px solid var(--color-hairline);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-brand-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 6px;
}

.form-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

details {
    border: 1px solid var(--color-hairline);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: var(--color-canvas);
}

summary {
    padding: 20px 24px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

summary:hover {
    background-color: var(--color-surface);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--color-slate);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '−';
}

details[open] summary {
    border-bottom: 1px solid var(--color-hairline);
}

.details-content {
    padding: 20px 24px;
    color: var(--color-slate);
    line-height: 1.6;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-brand-gold), var(--color-hairline));
}

.stats-counter {
    font-variant-numeric: tabular-nums;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

.float-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.float-shape-1 {
    animation-delay: 0s;
}

.float-shape-2 {
    animation-delay: -5s;
    animation-duration: 25s;
}

.float-shape-3 {
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(30px, 40px) rotate(270deg);
    }
}

.property-card-img {
    overflow: hidden;
}

.property-card-img img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-card-img img {
    transform: scale(1.08);
}

.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(15, 23, 42, 0.4));
    pointer-events: none;
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

.bg-image-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.overlay-dark > * {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .float-shape,
    .gradient-animate,
    .pulse-glow {
        animation: none;
    }
    .parallax-bg {
        background-attachment: scroll;
    }
    .btn-primary,
    .btn-secondary,
    .btn-gold {
        transition: background-color 0.15s ease;
    }
}

.hero-pin {
    will-change: transform;
}

.hero-image {
    will-change: transform;
    transform: scale(1);
}

.hero-title,
.hero-subtitle,
.hero-cta,
#hero-video {
    will-change: transform, opacity;
}
