/* =========================================
   QA&C Consulting - Base Styles
   Modern, Professional Medical QA Theme
   ========================================= */

:root {
    /* Color Palette - Trusting, Clean, Professional */
    --primary-blue: #0E4B8C;
    /* Deep trustworthy blue */
    --primary-light: #2A6EBA;
    --accent-teal: #14B8A6;
    /* Subtle modern accent */
    --text-main: #1F2937;
    /* Dark gray for readability */
    --text-muted: #4B5563;
    --bg-main: #FFFFFF;
    --bg-light: #F3F4F6;
    --white: #FFFFFF;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

/* =========================================
   Reset & Global Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--accent-teal);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0F9485;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.logo span {
    font-size: 0.8rem;
    vertical-align: super;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.btn-nav {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-speed) ease;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all var(--transition-speed) ease;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Placeholder gradient if no image */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 75, 140, 0.85);
    /* Deep blue overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.2s ease forwards;
}

/* =========================================
   Intro Section
   ========================================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-image .profile-image {
    width: 70%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    object-position: top;
    margin: 8rem auto 0;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
}

.badge-image {
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #0B3A6E;
    /* Darker shade of primary blue */
    color: var(--white);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer h3,
.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--white);
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    background-color: #08294F;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        z-index: 1001;
        /* Above mobile menu */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-speed) ease;
        padding-top: 80px;
        /* Space for header */
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}