/* ==========================================================================
   Firefly Villa - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    --primary: #5d4037;
    --primary-dark: #3e2723;
    --accent: #ff9800;
    --accent-light: #ffb74d;
    --warm: #8d6e63;
    --light: #fff8f0;
    --cream: #fdf5e6;
    --dark: #2d1f1a;
    --text: #4a3f3a;
    --white: #ffffff;
    --glow: rgba(255, 152, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--text);
    line-height: 1.8;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   2. Navigation
   -------------------------------------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

nav.scrolled .logo-text {
    color: var(--primary);
}

/* Firefly glow animation */
.firefly-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Navigation links */
.nav-center {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-center a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

nav.scrolled .nav-center a {
    color: var(--primary);
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

/* Navigation right section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem;
    border-radius: 20px;
    transition: background 0.3s ease;
}

nav.scrolled .lang-switch {
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
}

nav.scrolled .lang-btn {
    color: var(--primary);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--dark);
}

/* Airbnb link */
.airbnb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #ff5a5f;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.airbnb-link:hover {
    background: #e54750;
    transform: translateY(-2px);
}

.airbnb-link svg {
    width: 18px;
    height: 18px;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: background 0.3s ease;
}

nav.scrolled .mobile-menu span {
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(45, 31, 26, 0.5), rgba(45, 31, 26, 0.6)),
                url('../images/firefly - 1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(255, 152, 0, 0.15) 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

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

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--accent);
    color: var(--white);
    background: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

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

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

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

/* --------------------------------------------------------------------------
   5. Sections (General)
   -------------------------------------------------------------------------- */
section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header span {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.section-header h2 {
    font-size: 3rem;
    margin: 1rem 0;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   6. About Section
   -------------------------------------------------------------------------- */
.about {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 4px;
    z-index: -1;
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.cozy-highlight {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light) 100%);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   7. Amenities Section
   -------------------------------------------------------------------------- */
.amenities {
    background: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 64, 55, 0.15);
    border-color: var(--accent);
}

.amenity-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    color: var(--white);
}

.amenity-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.amenity-card p {
    font-size: 0.9rem;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   8. Gallery Section
   -------------------------------------------------------------------------- */
.gallery {
    background: var(--primary-dark);
    padding: 8rem 0;
}

.gallery .section-header h2,
.gallery .section-header p {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1rem;
    padding: 0 1rem;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(255, 152, 0, 0.2);
}

/* --------------------------------------------------------------------------
   9. Reviews Section
   -------------------------------------------------------------------------- */
.reviews {
    text-align: center;
    background: var(--white);
}

.reviews-highlight {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--cream) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-score {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--primary);
    line-height: 1;
}

.review-score span {
    font-size: 2rem;
    color: var(--text);
}

.review-count {
    font-size: 1rem;
    color: var(--text);
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   10. Location Section
   -------------------------------------------------------------------------- */
.location {
    background: var(--light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.location-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.location-details {
    margin: 2rem 0;
}

.location-details li {
    list-style: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-details li span {
    color: var(--accent);
    font-size: 1.2rem;
}

.map-container {
    height: 450px;
    background: #ddd;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   11. CTA Section
   -------------------------------------------------------------------------- */
.cta {
    background: linear-gradient(rgba(45, 31, 26, 0.7), rgba(45, 31, 26, 0.8)),
                url('../images/firefly - 27.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   12. Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--primary);
    color: var(--white);
}

.contact .section-header h2,
.contact .section-header p,
.contact .section-header span {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item span {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.contact-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Contact form */
.contact-form {
    background: rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   14. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .airbnb-link span {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image::before {
        display: none;
    }

    .about-image img {
        height: 400px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item,
    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    section {
        padding: 5rem 5%;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
