/*
* Zapurzaa Systems - Modern Responsive Website
* Custom Stylesheet
*/

/* ==== BASE STYLES ==== */
:root {
    --primary-color: #C3915F; /* Copper/bronze from actual logo */
    --secondary-color: #5A2B10; /* Darker brown from original HTML */
    --light-color: #F5F5F5;
    --dark-color: #333333;
    --accent-color: #D2691E; /* From original HTML */
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--secondary-color);
    background-color: var(--light-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
}

p {
    font-size: 1.05rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.separator {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 20px auto;
    display: block;
}

.separator.light {
    background-color: var(--light-color);
}

/* ==== NAVIGATION ==== */
#mainNav {
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    z-index: 1030; /* Higher z-index to ensure it's above the hero section */
}

#mainNav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-top: 8px;
    padding-bottom: 8px;
}

#mainNav .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
}

#mainNav .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

#mainNav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Dropdown menu styles */
#mainNav .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    /* Reset the forced display */
    display: none;
    position: absolute;
}

#mainNav .dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

#mainNav .dropdown-item:hover {
    background-color: rgba(195, 145, 95, 0.1);
    color: var(--primary-color);
}

/* Ensure the dropdown toggle works properly */
#mainNav .dropdown:hover .dropdown-menu {
    display: block;
}

/* ==== HERO SECTION ==== */
.hero-section {
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #E8D5B5, #D2B48C);
    /* background-size property removed for gradient */
    margin-bottom: 0;
    padding-top: 100px;
    z-index: 1; /* Lower z-index than the navbar */
}

.hero-section .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to right, rgba(90, 43, 16, 0.2), rgba(90, 43, 16, 0.05));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-section h1 span {
    color: var(--light-color);
    display: inline-block;
}

.hero-section .lead {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-logo {
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.7));
}

.animate-heading {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

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

/* ==== PAGE SECTIONS ==== */
.page-section {
    padding: 100px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

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

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.image-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    margin-bottom: 30px;
}

.image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-container img {
    transition: transform 0.8s ease;
    width: 100%;
}

.image-container:hover img {
    transform: scale(1.05);
}

.content-box {
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ==== CULTURE CARDS ==== */
.culture-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%; /* Ensure all cards have the same height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.culture-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.culture-card h3 {
    margin-bottom: 15px;
}

/* ==== CONTACT SECTION ==== */
.contact-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-item .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ==== FOOTER ==== */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

footer p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* ==== RESPONSIVE STYLES ==== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .page-section {
        padding: 80px 0;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    #mainNav {
        background-color: rgba(255, 255, 255, 0.95);
    }

    #mainNav .navbar-toggler {
        border: none;
    }
    
    /* Dropdown menu adjustments for mobile */
    #mainNav .dropdown-menu {
        position: static !important; /* Override the absolute positioning for mobile */
        transform: none !important;
        border: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 1.5rem;
        width: 100%;
    }
    
    #mainNav .dropdown-item {
        color: var(--secondary-color);
        padding: 0.5rem 1rem;
    }
    
    #mainNav .dropdown-item:hover {
        background-color: transparent;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 550px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-section {
        padding: 60px 0;
    }
    
    .culture-card, .contact-item {
        padding: 30px 15px;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .page-section {
        padding: 50px 0;
    }
    
    .btn {
        padding: 10px 25px;
    }
}

/* Custom background for Join Us section */
.bg-copper-gradient {
    background: linear-gradient(135deg, #E8D5B5, #D2B48C) !important;
}
