/* ==========================================
   1. RESET & GENERAL STYLES 
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* ==========================================
   2. HEADER & LOGO 
   ========================================== */
header {
    background-color: #1a252f;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

/* ==========================================
   3. HERO SLIDESHOW 
   ========================================== */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn {
    background-color: #f39c12;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #e67e22;
}

/* ==========================================
   4. SEARCH ENGINE 
   ========================================== */
.search-section {
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.search-container {
    background: #fff;
    width: 90%;
    max-width: 600px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-container i {
    color: #777;
    margin-right: 15px;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

/* ==========================================
   5. PRODUCTS GRID 
   ========================================== */
.products-section {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.products-section h2, .contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #1a252f;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
    padding-bottom: 15px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 15px 0 5px;
    padding: 0 10px;
}

.product-card p {
    color: #e67e22;
    font-weight: bold;
}

.btn-buy {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* ==========================================
   6. MODAL / POP-UP FORM 
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #000;
}

.btn-whatsapp-order {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp-order:hover {
    background-color: #1ebd58;
}

/* ==========================================
   7. CONTACT, FORM & MAP 
   ========================================== */
.contact-section {
    background-color: #fff;
    padding: 50px 5%;
}

.contact-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 20px;
    color: #1a252f;
    font-size: 1.4rem;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    width: 25px;
    color: #f39c12;
    font-size: 1.2rem;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #f39c12;
}

.btn-submit {
    background-color: #1a252f;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================
   8. FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1500;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #1ebd58;
}

.whatsapp-float i {
    font-size: 24px;
}

/* ==========================================
   9. FOOTER & MEDIA QUERIES
   ========================================== */
footer {
    background-color: #1a252f;
    color: #fff;
    text-align: center;
    padding: 25px 20px;
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; text-align: center; }
    .hero { height: 50vh; }
    .hero-overlay h2 { font-size: 1.8rem; }
    .whatsapp-float span { display: none; } /* Kwenye simu inaacha icon tu */
    .whatsapp-float { padding: 15px; border-radius: 50%; }
}

@media (min-width: 992px) {
    .contact-container { grid-template-columns: 1fr 1fr; }
}
