/* Chasing Balloons - Modern Retro Aesthetic (Logo-Inspired Palette) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Bootstrap overrides for logo palette */
    --bs-primary: #b83e39;
    --bs-primary-rgb: 184, 62, 57;
    
    /* Logo-inspired earthy palette */
    --primary-color: #b83e39;
    --primary-dark: #8f2f2b;
    --primary-light: #d45a55;
    --secondary-color: #606d3f;
    --accent-color: #e4b54e;
    --success-color: #606d3f;
    --bg-cream: #f9eedc;
    --bg-warm: #b7784b;
    --bg-light: #f5ebe0;
    --bg-white: #ffffff;
    --text-main: #462d1a;
    --text-muted: #6b5344;
    --text-dark: #292929;
    --gradient-primary: linear-gradient(135deg, #b83e39 0%, #d45a55 100%);
    --gradient-warm: linear-gradient(135deg, #b7784b 0%, #d4956a 100%);
    --gradient-soft: linear-gradient(135deg, #f9eedc 0%, #f5ebe0 100%);
    --gradient-hero: linear-gradient(135deg, rgba(70, 45, 26, 0.92) 0%, rgba(183, 120, 75, 0.85) 50%, rgba(70, 45, 26, 0.9) 100%);
    --shadow-sm: 0 1px 3px 0 rgb(70 45 26 / 0.08);
    --shadow-md: 0 4px 12px -2px rgb(70 45 26 / 0.12), 0 2px 6px -2px rgb(70 45 26 / 0.08);
    --shadow-lg: 0 12px 24px -4px rgb(70 45 26 / 0.15), 0 6px 12px -4px rgb(70 45 26 / 0.1);
    --shadow-xl: 0 24px 48px -8px rgb(70 45 26 / 0.2);
    --shadow-glow: 0 0 40px rgb(184, 62, 57 / 0.15);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

/* Navigation */
.navbar {
    background: rgba(249, 238, 220, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(70, 45, 26, 0.08);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main) !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand .logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.whatsapp-nav-link {
    background: #25D366 !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-nav-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--text-dark);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/8.jpg') center/cover;
    opacity: 0.55;
    z-index: 1;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--bg-cream);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.9s ease-out;
}

.hero-section p {
    font-size: 1.2rem;
    color: rgba(249, 238, 220, 0.9);
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.7;
    animation: fadeInUp 0.9s ease-out 0.15s both;
}

.hero-buttons {
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

/* Modern Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(184, 62, 57, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(184, 62, 57, 0.35);
}

.btn-outline-light {
    border: 2px solid var(--bg-cream);
    background: rgba(249, 238, 220, 0.1);
    color: var(--bg-cream);
}

.btn-outline-light:hover {
    background: var(--bg-cream);
    color: var(--text-main);
    border-color: var(--bg-cream);
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.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: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid rgba(70, 45, 26, 0.08);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(184, 62, 57, 0.15);
}

.card-title {
    font-weight: 600;
    color: var(--text-main);
}

/* Gallery styling */
.house-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-img-placeholder {
    position: relative;
    height: 300px;
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-cream) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: galleryShimmer 1.5s ease-in-out infinite;
}

.gallery-img-placeholder.loaded {
    animation: none;
    background: transparent;
}

.gallery-img-placeholder .gallery-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-img-placeholder.loaded .gallery-img {
    opacity: 1;
}

@keyframes galleryShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.house-card img,
.house-card .gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.house-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(70, 45, 26, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.house-card:hover::after {
    opacity: 1;
}

/* Form Elements */
.form-control, .form-select {
    border: 1px solid rgba(70, 45, 26, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 62, 57, 0.12);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Accordion */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-cream);
    color: var(--primary-color);
    box-shadow: none;
}

/* Contact Items */
.contact-item {
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

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

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Alerts - Modern Design */
.alert {
    border-radius: 16px;
    border: none;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, var(--secondary-color), #4a5a32);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, var(--secondary-color), #4a5a32);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--text-main) 0%, var(--text-dark) 100%);
    color: white;
    padding: 80px 0 40px;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Scroll-triggered reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 41, 41, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(12px);
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .house-card img,
    .house-card .gallery-img,
    .gallery-img-placeholder {
        height: 250px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .house-card img,
    .house-card .gallery-img,
    .gallery-img-placeholder {
        height: 200px;
    }
}

/* Mobile: show brand name with logo */
@media (max-width: 767px) {
    .navbar-brand .logo-img {
        height: 40px;
    }
}

/* Balloon Icon Styling */
.balloon-icon {
    font-size: 1.5em;
    display: inline-block;
    animation: floatBalloon 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes floatBalloon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.navbar-brand .balloon-icon {
    font-size: 1.3em;
    vertical-align: middle;
}

footer .balloon-icon {
    font-size: 1.2em;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Contact Item Link Styling */
.contact-item a {
    color: inherit;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.contact-item a:hover i {
    transform: scale(1.1);
}

/* Gallery */
#houses-container .card {
    transition: all 0.5s ease;
    border-radius: 12px;
}

#houses-container .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Booking Form Enhancements */
#booking-form .card {
    border: 1px solid rgba(70, 45, 26, 0.06);
    box-shadow: var(--shadow-xl);
    border-radius: 20px;
}

.input-group-text {
    background: var(--bg-cream);
    border: 1px solid rgba(70, 45, 26, 0.15);
    border-right: none;
    color: var(--text-muted);
    border-radius: 10px 0 0 10px;
}

#total-price {
    background: var(--bg-light) !important;
    font-weight: 700;
    color: var(--primary-color);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-warm);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Footer logo */
.footer-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

/* Section backgrounds - alternating warmth */
section:nth-of-type(even).bg-light {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light) 100%) !important;
}

/* Staggered reveal animations */
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

/* Icon accent colors */
.bg-primary.bg-opacity-10,
.bg-primary.bg-opacity-10 .text-primary {
    background-color: rgba(184, 62, 57, 0.12) !important;
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.text-warning {
    color: var(--accent-color) !important;
}

.text-danger {
    color: var(--primary-color) !important;
}
