/* ==========================================
   GLOBAL RESET & BASE
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #3a5a40;
    --primary-light: #588157;
    --primary-pale: #a3b18a;
    --cream: #faf9f7;
    --cream-dark: #f0ede6;
    --text-dark: #1a2e1c;
    --text-mid: #3d5a3e;
    --text-light: #6b7f6d;
    --white: #ffffff;
    --border: #e8e4dd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==========================================
   PRE-HEADER
   ========================================== */
.pre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    padding: 8px 40px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.pre-header .gst-number {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.pre-header .contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.pre-header a {
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
}
.pre-header a:hover { color: #fff; }

@media (max-width: 768px) {
    .pre-header {
        flex-direction: column;
        gap: 4px;
        padding: 8px 20px;
        text-align: center;
    }
    .pre-header .contact-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* ==========================================
   HEADER / NAV
   ========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 2px 0;
}

.logo img {
    height: 84px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(2.5);
    transform-origin: left center;
}

/* Nav Links */
nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-mid);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--primary);
    background: rgba(58,90,64,0.07);
}

/* Get Started CTA button */
.nav-cta {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-left: 8px;
    transition: background var(--transition), box-shadow var(--transition) !important;
    box-shadow: 0 2px 8px rgba(58,90,64,0.3);
}
.nav-cta:hover {
    background-color: var(--primary-light) !important;
    box-shadow: 0 4px 16px rgba(58,90,64,0.4) !important;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dropdown-toggle::after {
    content: '▾';
    font-size: 11px;
    opacity: 0.7;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    min-width: 190px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-mid);
    padding: 11px 18px;
    display: block;
    font-size: 14px;
    font-weight: 400;
    transition: background var(--transition), color var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--cream);
    color: var(--primary);
}

.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropdown-toggle { color: var(--primary); }

/* Hamburger */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 6px;
}

#menu-toggle { display: none; }

@media (max-width: 900px) {
    .header { padding: 0 20px; }
}

@media (max-width: 768px) {
    .menu-icon { display: block; }

    nav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 70px;
        left: 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 10px 0;
    }

    nav a {
        padding: 12px 24px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: block;
    }
    nav a:last-child { border-bottom: none; }

    .nav-cta {
        margin: 10px 20px;
        text-align: center;
        border-radius: 25px !important;
    }

    #menu-toggle:checked + .menu-icon + nav { display: flex; }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-top: 1px solid var(--border);
        background: var(--cream);
    }
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content { display: block; }

    .dropdown-toggle::after { display: none; }
}

/* ==========================================
   WHATSAPP BUTTON
   ========================================== */
.whatsapp-popup {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
}

.whatsapp-popup > a {
    display: flex;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(37,211,102,0.45);
    justify-content: center;
    align-items: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-popup > a:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

.whatsapp-icon { width: 32px; height: 32px; }

.whatsapp-message {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    z-index: 1001;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.whatsapp-message.show { display: block; }

.whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}

.close-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: var(--primary);
    color: rgba(255,255,255,0.85);
    padding: 50px 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-left h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 280px;
    margin-bottom: 16px;
}

/* Social Icons Block in Footer Left */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    transition: all var(--transition);
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-column ul li {
    margin-bottom: 14px; /* Expanded for mobile touch target accessibility */
}

.footer-column ul li a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    display: inline-block;
    padding: 2px 0; /* Expanded touch target height */
}
.footer-column ul li a:hover { color: #fff; }

.footer-column .connect-text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-bottom {
    background-color: var(--text-dark);
    margin: 0 -40px;
    padding: 16px 40px;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-content .left,
.footer-bottom-content .right {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
}

.footer-bottom-content a { color: rgba(255,255,255,0.65); }
.footer-bottom-content a:hover { color: #fff; }

.footer-image-link { display: flex; align-items: center; }
.footer-image { height: 28px; width: auto; border-radius: 4px; opacity: 0.85; }

/* Legacy footer support */
.footer-middle { display: contents; }

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-left { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    footer { padding: 40px 20px 0; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom { margin: 0 -20px; padding: 14px 20px; }
    .footer-bottom-content { flex-direction: column; align-items: flex-start; }
}
