/* ============================================
   Foz Villas — Premium Styles
   Palette B: Lumineux
   ============================================ */

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

::selection {
    background-color: #C4704A;
    color: white;
}

/* ---- Custom cursor (desktop only) ---- */
@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        position: fixed;
        width: 8px;
        height: 8px;
        background: #C4704A;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.15s ease, opacity 0.15s ease;
        mix-blend-mode: difference;
    }

    .cursor-ring {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1.5px solid rgba(196, 112, 74, 0.4);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    }

    .cursor-ring.hover {
        width: 60px;
        height: 60px;
        border-color: rgba(196, 112, 74, 0.8);
    }

    body:not(.menu-open) {
        cursor: none;
    }

    body:not(.menu-open) a,
    body:not(.menu-open) button,
    body:not(.menu-open) input,
    body:not(.menu-open) select,
    body:not(.menu-open) textarea,
    body:not(.menu-open) [role="button"] {
        cursor: none;
    }
}

/* ---- Film grain overlay ---- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.03;
    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");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---- Navigation ---- */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.4s ease;
}

/* Navbar transparent over hero: white text */
#navbar:not(.scrolled) .nav-logo,
#navbar:not(.scrolled) .nav-link,
#navbar:not(.scrolled) button {
    color: white;
}

#navbar:not(.scrolled) #burger-icon span {
    background-color: white;
}

#navbar:not(.scrolled) .border-charcoal\/10 {
    border-color: rgba(255, 255, 255, 0.25);
}

#navbar.scrolled {
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .nav-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C4704A;
    transition: width 0.3s ease;
}

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

/* ---- Hero ---- */
#hero {
    background: #1A1A1A;
}

.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #FAFAF7);
    z-index: 5;
}

/* ---- Section dividers (wave) ---- */
.wave-divider {
    position: relative;
    overflow: hidden;
    height: 80px;
    margin-top: -1px;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

/* ---- Horizontal rule luxury ---- */
.luxury-rule {
    width: 60px;
    height: 1px;
    background: #C4704A;
    margin: 0 auto;
    border: none;
}

/* ---- Premium button styles ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 112, 74, 0.3);
}

.btn-outline {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #C4704A;
    z-index: -1;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline:hover::after {
    height: 100%;
}

.btn-outline:hover {
    color: white;
    border-color: #C4704A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 112, 74, 0.2);
}

/* ---- Villa cards premium ---- */
.villa-card {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.5s ease;
}

.villa-card .villa-image {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.villa-card:hover .villa-image {
    transform: scale(1.05);
}

.villa-card .villa-overlay {
    transition: opacity 0.5s ease;
}

.villa-card:hover .villa-overlay {
    opacity: 1;
}

/* ---- Step cards premium ---- */
.step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* ---- Guarantee cards ---- */
.guarantee-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guarantee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ---- Quote section ---- */
.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12rem;
    line-height: 0.5;
    opacity: 0.08;
    color: #C4704A;
}

/* ---- Form premium ---- */
.form-field {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-field:focus {
    border-color: #C4704A !important;
    box-shadow: none;
}

.form-label {
    transition: color 0.3s ease;
}

.form-field:focus ~ .form-label,
.form-group:focus-within .form-label {
    color: #C4704A;
}

/* ---- Animations (initial states) ---- */
.reveal-line {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

.step-item {
    opacity: 0;
    transform: translateX(-30px);
}

.step-item:nth-child(even) {
    transform: translateX(30px);
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
}

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

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

.hero-scroll {
    opacity: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(196, 112, 74, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 112, 74, 0.6);
}

/* ---- Timeline ---- */
.timeline-line {
    background: linear-gradient(to bottom, transparent, #C4704A 20%, #C4704A 80%, transparent);
}

/* ---- Counter animation helper ---- */
.number-highlight {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ---- Image placeholder shimmer ---- */
.placeholder-shimmer {
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(196, 112, 74, 0.04) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .step-item,
    .step-item:nth-child(even) {
        transform: translateY(30px) translateX(0);
    }

    .quote-mark {
        font-size: 6rem;
    }
}

/* ---- Smooth page load ---- */
.page-transition {
    opacity: 0;
    animation: pageIn 0.8s ease forwards;
}

@keyframes pageIn {
    to { opacity: 1; }
}
