/* Modern Luxury Villa Design System - Inspired by Sophisticated Brand Guidelines */
:root {
    /* Primary Color Palette - Sophisticated Green & Gold */
    --primary-forest: #1a4a3a;
    --primary-emerald: #2d6b4f;
    --primary-sage: #4a7c59;
    --accent-gold: #d4af37;
    --accent-champagne: #f7e7ce;
    --accent-bronze: #cd7f32;
    
    /* Neutral Palette */
    --neutral-white: #ffffff;
    --neutral-cream: #fefcf8;
    --neutral-light: #f8f6f2;
    --neutral-medium: #e8e4dd;
    --neutral-dark: #2c2c2c;
    --neutral-charcoal: #1a1a1a;
    
    /* Typography System */
    --font-primary: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-secondary: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-accent: 'Cormorant Garamond', 'Georgia', serif;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-subtle: 0 2px 8px rgba(26, 74, 58, 0.06);
    --shadow-medium: 0 4px 16px rgba(26, 74, 58, 0.12);
    --shadow-strong: 0 8px 32px rgba(26, 74, 58, 0.18);
    
    /* Layout */
    --container-max: 1400px;
    --container-padding: 2rem;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--neutral-charcoal);
    background-color: var(--neutral-cream);
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Pattern Overlay */
.pattern-overlay {
    position: relative;
    overflow: hidden;
}

.pattern-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20px 20px, var(--primary-emerald) 1px, transparent 1px),
        radial-gradient(circle at 60px 60px, var(--accent-gold) 0.5px, transparent 0.5px);
    background-size: 80px 80px, 120px 120px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Header - Sophisticated Navigation */
header {
    background: linear-gradient(135deg, var(--neutral-white) 0%, var(--neutral-light) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-top {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-bottom {
    display: none;
}

header .logo {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-forest);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

header .logo .bold-letters {
    font-weight: 800;
}

header .logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-champagne));
}

header ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin: 0;
}

header ul li a {
    color: var(--neutral-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-xs) 0;
    position: relative;
    transition: all 0.3s ease;
}

header ul li a:hover,
header ul li a.active {
    color: var(--primary-emerald);
}

header ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

header ul li a:hover::after,
header ul li a.active::after {
    width: 100%;
}

.availability-button {
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-forest));
    color: var(--neutral-white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.availability-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.availability-button:hover::before {
    left: 100%;
}

.availability-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Main Layout */
main {
    position: relative;
}

/* Container System */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

/* Section Styling */
section {
    padding: var(--space-3xl) 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--neutral-white);
}

section:nth-child(odd):not(:first-child) {
    background: var(--neutral-light);
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--primary-forest);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-champagne));
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-emerald);
}

h4 {
    font-size: 1.25rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neutral-dark);
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-dark);
}

/* Hero Section - Luxury Villa Showcase */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-forest) 0%, var(--primary-emerald) 100%);
    color: var(--neutral-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%),
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    color: var(--neutral-white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    color: var(--neutral-light);
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

/* Hero Stats - Elegant Information Display */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neutral-light);
    margin: 0;
    font-weight: 500;
}

.stat-item img {
    max-width: 60px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Certificate Overlay - Blue Ribbon Badge Style */
.certificate-overlay {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all 0.4s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.certificate-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    animation: certificate-shine 3s ease-in-out infinite;
}

@keyframes certificate-shine {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(100%); opacity: 1; }
}

.certificate-overlay:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 30px rgba(43, 92, 160, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

div.certificate-overlay > img{
    width: auto;
    display: block;
    opacity: 0.9;
    z-index: 2;
    position: relative;
    height: 150px;
}

.certificate-overlay::after {
    content: '';
    display: none;
}

/* Tiles Section - Modern Card System */
.tiles-section {
    padding: var(--space-3xl) 0;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.tile {
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: all 0.4s ease;
    position: relative;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-champagne));
    z-index: 2;
}

.tile.highlight {
    background: linear-gradient(135deg, var(--neutral-white) 0%, var(--neutral-light) 100%);
    border: 1px solid var(--accent-champagne);
}

.tile.highlight::before {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-gold));
}

.tile img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tile:hover img {
    transform: scale(1.05);
}

.tile-content {
    padding: var(--space-xl);
}

.tile h3 {
    margin-bottom: var(--space-lg);
    font-size: 1.6rem;
    position: relative;
}

.tile h4 {
    color: var(--primary-emerald);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.tile ul {
    list-style: none;
    padding: 0;
}

.tile ul li {
    font-size: 1rem;
    color: var(--neutral-dark);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.6;
}

.tile ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
}

.tile ul li strong {
    color: var(--primary-emerald);
    font-weight: 600;
}

.tile p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-dark);
}

/* Floor Sections - Organized Layout */
.floor-section {
    margin-bottom: var(--space-3xl);
}

.floor-section h3 {
    font-size: 2rem;
    color: var(--primary-forest);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
    border-bottom: 2px solid var(--neutral-medium);
    position: relative;
}

.floor-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--accent-gold);
}

/* Swiper Customization */
.tile .swiper {
    width: 100%;
    height: 420px; /* 150% of original 280px for desktop 50% width tiles */
}

.tile .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile .swiper-button-next,
.tile .swiper-button-prev {
    color: var(--neutral-white);
    background: rgba(26, 74, 58, 0.8);
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.tile .swiper-button-next:hover,
.tile .swiper-button-prev:hover {
    background: var(--primary-emerald);
    transform: scale(1.1);
}

.tile .swiper-button-next::after,
.tile .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

.tile .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
    transition: all 0.3s ease;
}

.tile .swiper-pagination-bullet-active {
    background: var(--accent-gold);
    transform: scale(1.3);
}

/* Links and CTAs */
.directions-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--primary-emerald);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: var(--space-md) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.directions-link:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Footer - Elegant Conclusion */
footer {
    background: var(--primary-forest);
    color: var(--neutral-light);
    text-align: center;
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-logo .bold-letters {
    font-weight: 900;
}

footer p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    color: var(--neutral-medium);
}

footer a {
    color: var(--accent-champagne);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold);
}

.social-media {
    margin: var(--space-xl) 0;
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.social-media a {
    font-size: 1.2rem;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: var(--accent-gold);
    color: var(--primary-forest);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.9rem;
    color: var(--neutral-medium);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sticky Button - Match Header Button Exactly */
.sticky-availability {
    
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-forest));
    color: var(--neutral-white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: fixed;
    overflow: hidden;
}

.sticky-availability::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.sticky-availability:hover::before {
    left: 100%;
}

.sticky-availability:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --container-padding: 1.5rem;
        --space-3xl: 4rem;
    }
    
    header nav {
        gap: var(--space-sm);
        padding: var(--space-sm) var(--container-padding);
        flex-direction: column;
    }
    
    .nav-top {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
        text-align: center;
    }
    
    header ul {
        gap: var(--space-md);
    }
    
    .tiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-lg);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .certificate-overlay {
        top: 0;
        right: 0;
        padding: var(--space-sm);
        width: 100%;
        height: 100%;
    }
    
    .certificate-overlay img {
        height: 120px;
        width: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --space-3xl: 3rem;
    }
    
    header nav {
        padding: var(--space-xs) var(--container-padding);
        gap: var(--space-sm);
        flex-direction: row;
    }
    
    .nav-top {
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--space-xs);
        width: auto;
        text-align: left;
    }
    
    .nav-bottom {
        display: none;
    }
    
    header ul {
        display: none;
    }
    
    /* Hide header availability button on mobile */
    header .availability-button {
        display: none;
    }
    
    /* Make logo smaller on mobile */
    header .logo {
        font-size: 1.5rem;
    }
    
    .tiles-grid {
        grid-template-columns: 1fr;
    }
    
    .tile .swiper {
        height: 560px; /* 200% of original 280px for mobile 100% width tiles */
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-lg);
    }
    
    .certificate-overlay {
    }
    
    .certificate-overlay img {
        height: 150px;
    }
    
    .tile-content {
        padding: var(--space-lg);
    }
    
    /* Enhanced sticky button for mobile */
    .sticky-availability {
        bottom: var(--space-lg);
        right: var(--space-lg);
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
        box-shadow: 0 4px 20px rgba(26, 74, 58, 0.4);
        z-index: 1001;
    }
} 