/* Global Styles */
:root {
    --primary-color: #0056b3; /* Deep Blue */
    --secondary-color: #00aaff; /* Light Blue */
    --accent-color: #ffc107; /* Yellow */
    --text-color: #333;
    --light-text: #fff;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --transition: all 0.3s ease;
    --font-primary: 'Lato', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--primary-color);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

section {
    padding: 4rem 0;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 0;
    text-align: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

.tagline {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}


/* Navigation */
nav {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001; /* Ensure it's above the menu */
    }
    
    nav .container {
        padding: 0.5rem 1rem; /* Add some padding for better touch targets */
    }
    
    .nav-links {
        display: none; /* Initially hidden */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.show {
        display: flex; /* Show when active */
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .nav-links li a::after {
        display: none; /* Remove underline effect on mobile */
    }
}



/* Hero Section */
.hero {
    background: url('images/medical_syringe_blue.webp') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 86, 179, 0.6); /* Primary color overlay */
    z-index: 1;
}

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

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.cta-button:hover {
    background-color: #ffca2c; /* Slightly lighter yellow */
    color: var(--text-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Domain Value Section */
.domain-value {
    background-color: var(--background-color);
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.card p {
    font-size: 1rem;
    color: #555;
}

/* About Bupivacaine Section */
.about-bupivacaine {
    background-color: var(--card-bg); /* White background */
}

.about-bupivacaine h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.about-bupivacaine p {
    margin-bottom: 1rem;
    text-align: justify;
}

.about-bupivacaine strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background-color: var(--background-color);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.2);
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    width: 100%;
    font-size: 1.1rem;
}

.submit-button:hover {
    background-color: #004494; /* Darker blue */
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #343a40; /* Dark Gray */
    color: #adb5bd; /* Light Gray Text */
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

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

footer a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    h2 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation - Consolidated */
    .nav-toggle {
        display: block;
}
    .nav-links {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100%; /* Position below the nav bar */
            left: 0;
            right: 0;
            width: 100%; /* Explicitly set width */
            background-color: var(--primary-color);
            padding: 1rem 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            text-align: center;
            gap: 1rem;
            box-sizing: border-box; /* Ensure padding doesn't cause overflow */
} 



   .nav-links.show {
        display: flex; /* Show when active */
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
        color: var(--light-text); /* Ensure text is visible */
    }

    .nav-links li a::after {
        display: none; /* No underline effect needed on mobile dropdown */
    }

    .hero {
        padding: 4rem 0;
        /* Consider a different background image or position for mobile */
        background-image: url('images/medical_syringe_clear.webp'); /* Example: Use a different image */
        background-size: cover; /* Ensure it covers */
        background-position: center; /* Center the image */
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .value-cards {
        grid-template-columns: 1fr; /* Stack cards */
    }

    .contact-form {
        padding: 2rem;
    }

    footer {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-toggle .bar {
        width: 22px;
        height: 2px;
    }

    .nav-links {
        padding: 1rem 1rem;
    }

    .nav-links li a {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button,
    .submit-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

