/* ==============================
   CSS RESET & VARIABLES
   ============================== */
:root {
    --color-primary: #1A5F7A;
    --color-primary-light: #2293B0;
    --color-secondary: #E3A336;
    --color-dark: #111827;
    --color-darker: #0F172A;
    --color-text: #4B5563;
    --color-text-light: #9CA3AF;
    --color-bg: #F9FAFB;
    --color-white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .hero-font {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* ==============================
   GLASSMORPHISM & UTILITIES
   ============================== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.text-center { text-align: center; }

/* ==============================
   BUTTONS
   ============================== */
.btn-primary, .btn-primary-large, .btn-primary-full, .btn-secondary-large, .btn-outline, .btn-primary-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.75rem;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-large {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary-large:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.75rem 2rem;
    width: 100%;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary-full {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    width: 100%;
}

.btn-primary-full:hover {
    background: var(--color-dark);
}

.btn-primary-form {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary-form:hover {
    background: var(--color-primary-light);
}

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

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--color-dark);
}

.logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a:not(.btn-primary) {
    color: var(--color-text);
}

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

.nav-links a:not(.btn-primary):hover:after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-white);
}

.navbar.scrolled .nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hero background image */
    background: url('https://images.unsplash.com/photo-1587061949409-02df41d5e562?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    color: var(--color-white);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content .hero-subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==============================
   ABOUT / FEATURES SECTION
   ============================== */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.section-title p {
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(26, 95, 122, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==============================
   GALLERY SECTION
   ============================== */
.gallery {
    background-color: var(--color-white);
}

.gallery-wrapper {
    position: relative;
    width: 100%;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* Hide Horizontal Scrollbar */
.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    color: var(--color-dark);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: -24px;
}

.gallery-nav.next {
    right: -24px;
}

.gallery-item {
    display: block;
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 280px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

/* ==============================
   RENTAL OPTIONS
   ============================== */
.rental {
    background-color: var(--color-white);
}

.rental-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.rental-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.rental-card.premium {
    background: var(--color-darker);
    color: var(--color-white);
    border: none;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.4);
}

.badge-premium {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.rental-card.premium .card-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rental-card.premium .card-header h3 {
    color: var(--color-white);
}

.card-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

.rental-features {
    margin-bottom: 2.5rem;
}

.rental-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rental-features span {
    color: var(--color-primary);
    font-weight: bold;
}

.rental-card.premium .rental-features span {
    color: var(--color-secondary);
}

/* ==============================
   LOCATION & CONTACT
   ============================== */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.location-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.location-text p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.contact-info {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.contact-form {
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    display: inline-block;
    cursor: pointer;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.8);
    font-family: inherit;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.location-map {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.map-view {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.ambient-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.map-view:hover .ambient-img {
    transform: scale(1.05);
}

.map-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255,255,255,0.9);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-dark);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

/* ==============================
   FOOTER
   ============================== */
footer {
    background: var(--color-darker);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: var(--color-white);
    font-size: 1.5rem;
}

.footer-logo h3 span {
    color: var(--color-secondary);
}

.footer-logo p {
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-light);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ==============================
   ANIMATIONS
   ============================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .location-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile menu hidden for now, or could use flex wrap */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}
