/* global.css - Universal styles for all pages */

/* CSS Variables for Theming */
:root {
    --primary-color: #603D20;
    --secondary-color: hsl(52, 82%, 63%);
    --accent-color: #988A77;
    --light-bg: #F5F2E7;
    --dark-text: #603D20;
    --light-text: #988A77;
}

/* Delivery Banner */
.delivery-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a2f18 100%);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}

.delivery-banner i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: white;
    padding-top: 130px; /* Account for fixed delivery banner (48px) + header (~80px) */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 48px; /* Height of delivery banner */
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    height: 60px;
    width: auto;
    margin-right: 15px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--light-text);
    display: block;
}

.kra-logo {
    height: 80px;
    width: auto;
    margin-left: 15px;
}

/* Navigation */
nav {
    position: relative;
    z-index: 1002;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    background-color: white;
    border-radius: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        padding: 8px 0;
        position: relative;
    }

    .logo-container {
        flex: 1;
        margin-right: 10px;
    }

    .logo {
        height: 60px;
        margin-right: 8px;
    }

/* ============================================
   Header Search Bar
============================================ */
/* Search functionality removed */

/* Mobile - keep search visible but compact */
/* Search functionality removed */

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .kra-logo {
        height: 65px;
        margin-left: 28px;
    }

    .hamburger {
        display: flex;
        position: relative;
        right: 0;
        top: 0;
    }

    nav {
        position: static;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 350px;
        border-top: 1px solid #eee;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 20px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f9d71c;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.whatsapp-float i {
    color: white;
    font-size: 24px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float i {
        font-size: 20px;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        flex-direction: row !important;
        box-shadow: none !important;
    }

    .nav-menu li {
        margin-left: 25px !important;
        border-bottom: none !important;
    }

    .nav-menu li a {
        display: inline-block !important;
        padding: 0 !important;
    }
}