/* ==========================================================================
   Design System & Variables - Light Breezy Coastal Theme
   ========================================================================== */
:root {
    /* Color Palette */
    --clr-primary: #3b82f6;      /* Ocean Blue */
    --clr-primary-dark: #1e40af; /* Deep Water */
    --clr-primary-light: #93c5fd;/* Sky Blue */
    
    --clr-sand: #fef08a;         /* Sunny Sand */
    --clr-sand-light: #fef9c3;   /* Light Sand */
    --clr-sand-dark: #ca8a04;    /* Wet Sand / Gold Accent */
    
    --clr-white: #ffffff;
    --clr-off-white: #f8fafc;
    --clr-bg-light: #f1f5f9;
    
    --clr-text-main: #334155;    /* Slate */
    --clr-text-muted: #64748b;
    --clr-text-light: #f8fafc;

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --container-width: 1200px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text-main);
    background-color: var(--clr-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--clr-primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
}

.subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    height: 3px;
    width: 60px;
    background: var(--clr-sand-dark);
    margin: var(--spacing-sm) auto;
    border-radius: 2px;
}

.light-divider {
    background: var(--clr-sand);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

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

.center-btn {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.glass-nav.scrolled .logo,
.glass-nav.scrolled .nav-links a {
    color: var(--clr-primary-dark);
}

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

.logo-link {
    display: flex;
    align-items: center;
    background-color: var(--clr-white);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.logo-img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.glass-nav.scrolled .logo-img {
    height: 60px;
    filter: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--clr-white);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-sand);
    transition: var(--transition);
}

.glass-nav.scrolled .nav-links a::after {
    background-color: var(--clr-primary);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.4) 100%
    );
}

.hero-content {
    text-align: center;
    color: var(--clr-white);
    z-index: 1;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--clr-white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.hero-location {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-price {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--clr-white);
    margin-bottom: 2rem;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--clr-white);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.scroll-indicator .line {
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--clr-white);
    animation: scrollLine 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes scrollLine {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ==========================================================================
   Property Details (Stats)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--clr-primary);
}

.stat-icon {
    color: var(--clr-primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--clr-primary-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: var(--clr-text-main);
    line-height: 1.8;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

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

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

/* ==========================================================================
   Location Section
   ========================================================================== */
.location-section {
    position: relative;
    background-image: url('gallery6.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: var(--clr-white);
}

.location-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 64, 175, 0.85); /* Primary dark with opacity */
}

.location-content {
    max-width: 700px;
}

.location-content h2 {
    color: var(--clr-white);
}

.location-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list span {
    color: var(--clr-sand);
    font-weight: bold;
}

/* ==========================================================================
   Agents
   ========================================================================== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.agent-card {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.agent-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--clr-sand-light);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--clr-white);
    box-shadow: var(--shadow-md);
}

.agent-info h3 {
    margin-bottom: 0.2rem;
}

.agent-title {
    color: var(--clr-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.agent-bio {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-contact a {
    color: var(--clr-primary-dark);
    font-weight: 600;
}

.agent-contact a:hover {
    color: var(--clr-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-primary-dark);
    color: var(--clr-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--clr-white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--clr-white);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav approach for now */
    }
    
    .section {
        padding: 3rem 0;
    }
}
