/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Futura', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.smaller-text {
    font-size: 0.9rem;
}   

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 2rem;
    background-color: #CC3728;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* justify-content: flex-end; */
}

.logo {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.logo a {
    color: white;
    text-decoration: none;
    display: flex;
}

.logo a img {
    width: 65px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* Hero section */
.hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* padding-top: 2.5rem; */
    padding-top: 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero-overlay p {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* About section */
#about .gallery{ 
    display: grid;
}

#about-mobile { 
    display: none;
}

.about {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #CC3728;
}

.about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.emojis {
    font-size: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Location section */
.location {
    padding: 5rem 2rem;
    text-align: center;
    background-color: #f8f8f8;
}

.location h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #CC3728;
}

.address-wrapper {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

address {
    font-style: normal;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    text-align: left;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #333;
    color: white;
}

.social {
    margin-bottom: 2rem;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.instagram-link svg {
    margin-right: 0.5rem;
    fill: white;
}

.instagram-link:hover {
    opacity: 0.8;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Customers Gallery */
.customers-gallery {
    padding: 8rem 2rem 5rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.customers-gallery h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #CC3728;
}

.customers-gallery p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    min-height: 300px; /* Ensure there's space for the loading indicator */
}

.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

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

.gallery-grid .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

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

/* Loading indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 2rem auto;
}

.loading-indicator p {
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(204, 55, 40, 0.2);
    border-radius: 50%;
    border-top-color: #CC3728;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #CC3728;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

#scrollToTopBtn:hover {
    background-color: #A82C20;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.map-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 700px;
}

.map-wrapper img {
    display: inline-block
}

@media screen and (max-width: 970px) {
    .address-wrapper {
        flex-direction: column;
    }
    
    address {
        text-align: center;
    }
}

@media (max-width: 769px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        /* justify-content: flex-end; */
        align-items: center;
        padding: 1rem 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: #CC3728;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu ul li {
        margin: 1rem 0;
    }
    
    /* .logo {
        margin-bottom: 1rem;
    } */

    /* nav {
        display: none;
    } */
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .bar {
        width: 35px;
        height: 3px;
        background-color: white;
        margin: 2px 0;
        transition: 0.4s;
    }
    
    .hero-overlay h1 {
        font-size: 3rem;
    }
    
    .hero-overlay p {
        font-size: 1.2rem;
    }
    
    .about, .location {
        padding: 3rem 1.5rem;
    }
    
    .about h2, .location h2 {
        font-size: 2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }

    iframe {
        width: 100%;
    }

    .map-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .map-wrapper img {
        display: none
    }

    #about .gallery { 
        display: none;
    }

    #about-mobile { 
        display: block;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-overlay p {
        font-size: 1rem;
    }
}