/* Cistron Biologics - Updated Design System (Light Mode) */

:root {
    --bg-white: #FFFFFF;
    --corporate-red: #E63946;
    --text-dark: #2B2D42;
    --text-muted: #4A4E69;
    --border-light: #EDF2F4;
    --navbar-bg: #FFFFFF;
    --card-bg: #F8F9FA;
    --accent-soft: rgba(230, 57, 70, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navbar */
header {
    background-color: var(--navbar-bg);
    border-bottom: 2px solid var(--corporate-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    width: 250px; /* Increased size */
    height: auto;
    max-height: 100px;
    object-fit: contain; /* Clarity fix */
    display: block;
}

/* Search Bar in Navbar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-container input {
    padding: 8px 35px 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    transition: 0.3s;
    width: 200px;
}

.search-container input:focus {
    border-color: var(--corporate-red);
    width: 250px;
}

.search-container i {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

nav {
    border-top: 1px solid var(--border-light);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.nav-links li {
    position: relative; /* For dropdown */
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    transition: 0.3s;
    display: block;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--corporate-red);
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 10;
    border-top: 2px solid var(--corporate-red);
    list-style: none;
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    text-transform: none;
    font-size: 0.85rem;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
}

.dropdown a:hover {
    background-color: var(--card-bg);
    color: var(--corporate-red);
}

.nav-links li:hover .dropdown {
    display: block;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--corporate-red);
    margin: 0 auto;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--corporate-red);
    color: white;
    padding: 14px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-red:hover {
    background-color: #c02d38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--corporate-red);
}

.product-img-wrapper {
    height: 200px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    overflow: hidden;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.feature-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.feature-card h3 {
    color: var(--text-dark) !important;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.3;
    min-height: 3rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.order-now-btn {
    background-color: var(--corporate-red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-now-btn:hover {
    background-color: #c02d38;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 5% 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-box i {
    font-size: 2rem;
    color: var(--corporate-red);
    margin-bottom: 1.5rem;
}

.footer-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-box p {
    color: #cbd5e0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links a {
        padding: 10px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    .search-container {
        margin-left: 0;
        width: 100%;
        max-width: 400px;
    }
    .search-container input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0;
        text-align: center;
        display: none; /* Mobile menu should be handled with JS */
    }
    /* Simple display for now to keep functional */
    .nav-links.active {
        display: flex;
    }
    .dropdown {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
