/*==================================================
    Project: ISO 17025 LabGuide Website
    Author: Your Name
    Description: Modern, Professional styles for Lab Resources.
====================================================*/

/* 1. Global Resets & Variables
----------------------------------------------------*/
:root {
    --primary-color: #0f172a; /* Deep Slate / Navy */
    --secondary-color: #2563eb; /* Active Blue */
    --accent-color: #3b82f6; /* Lighter Blue */
    --bg-body: #f8fafc; /* Light Slate Gray */
    --bg-surface: #ffffff;
    --card-bg-dark: #0f172a !important;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-muted-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-dark: #1e293b;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 2. Header & Navigation (White Background like other pages)
----------------------------------------------------*/
header {
    background-color: var(--bg-surface);
    padding: 1.2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.logo i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
}


/* 3. Hero Section (Matches Page Headers on other pages)
----------------------------------------------------*/
.hero {
    background: #0f172a; /* Keep dark even in light mode for impact */
    color: white;
    text-align: center;
    padding: 100px 10% 80px;
    background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 40%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    opacity: 0.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 4. Services Strip
----------------------------------------------------*/
.services-strip {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding-inline: 10%;
    position: relative;
    z-index: 10;
}

.service-item {
    background: #0f172a !important;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-dark);
    color: #ffffff !important;
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.service-icon-circle {
    width: 50px; height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; color: var(--secondary-color);
    font-size: 1.2rem; transition: transform 0.3s ease;
}

.service-item:hover .service-icon-circle {
    transform: scale(1.1) rotate(10deg);
}

.service-item h4 {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1rem;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* 5. Tool Cards Section
----------------------------------------------------*/
.section-container {
    padding: 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background-color: #0f172a !important;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    padding: 40px 32px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    color: #ffffff !important;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--text-muted-light) !important;
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tool-card .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* 6. Footer CTA & Main Footer
----------------------------------------------------*/
.footer-cta {
    background-color: #0f172a;
    color: white;
    padding: 80px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    width: 300px;
    color: white;
    outline: none;
}

.subscribe-form button {
    padding: 14px 30px;
    border: none;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s;
}

.main-footer {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    text-align: center;
    padding: 60px 10%;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.main-footer a { color: var(--text-muted); margin: 0 10px; font-size: 0.85rem; }
.main-footer a:hover { color: var(--secondary-color); }

.social-icons { margin-top: 25px; }
.social-icons a {
    color: var(--text-muted);
    margin: 0 12px;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.social-icons a:hover { color: var(--secondary-color); }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .services-strip { flex-direction: column; align-items: center; margin-top: 20px; }
    .footer-cta { flex-direction: column; text-align: center; }
    .subscribe-form { flex-direction: column; width: 100%; }
    .subscribe-form input { width: 100%; }
}
