/*
 * File Name: style.css
 * Purpose: Fully responsive styling for BPMS, enforcing a formal visual hierarchy based on official logo colors.
 * Author: Lyzfy Micro Systems SMC Limited
 */

:root {
    --navy: #084177; /* Rich Corporate Blue from Logo Text/Wall */
    --green: #42A83A; /* Vibrant Pharmacy Green from Logo Capsule/Circle */
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--navy);
    color: var(--white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-links li {
    position: relative;
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    display: block;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--green);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--navy);
    min-width: 250px;
    list-style: none;
    border-top: 3px solid var(--green);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin-left: 0;
}

.dropdown-menu li a {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- Hero Slider --- */
.hero-slider {
    height: 60vh;
    min-height: 400px;
    position: relative;
    background-color: var(--navy);
    overflow: hidden;
}

.slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 65, 119, 0.75); /* Updated navy overlay */
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--green);
}

.slide-content p {
    font-size: 1.2rem;
}

/* --- Content Sections --- */
.content-section {
    padding: 4rem 5%;
}

.bg-navy { background-color: var(--navy); }
.bg-light-gray { background-color: var(--light-gray); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.text-white h2 {
    color: var(--green);
}

p {
    margin-bottom: 1rem;
}

/* Core Layouts */
.two-column {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.two-column .text-block, 
.two-column .image-block {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px solid var(--green);
    border-radius: 4px;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-top: 4px solid var(--green);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 4px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* --- Footer --- */
footer {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    border-top: 5px solid var(--green);
}

/* ========================================================
   Mobile Responsiveness (Media Queries)
   ======================================================== */

@media screen and (max-width: 900px) {
    .two-column {
        flex-direction: column;
        gap: 2rem;
    }

    .two-column .image-block {
        width: 100%;
        order: -1; 
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .nav-links li {
        margin-left: 0;
        margin: 5px;
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-top: none;
        padding-left: 15px;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    .dropdown:active .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: block; 
    }
}