/* Professional Corporate Training Design System v2 */

:root {
    /* Color Palette - Authority Blue & Professional Slate */
    --color-bg: #F8FAFC;
    /* Slate-50 */
    --color-bg-alt: #ffffff;
    /* White for cards */
    --color-text: #334155;
    /* Slate-700: Softer than pure black for reading */
    --color-heading: #0F172A;
    /* Slate-900: Strong definition for headings */
    --color-primary: #0F172A;
    /* Slate-900: Primary Brand Color */
    --color-accent: #0284C7;
    /* Sky-600: Vibrant Interaction Color */
    --color-accent-hover: #0369A1;
    /* Sky-700 */
    --color-success: #10B981;
    /* Emerald-500 */
    --color-border: #E2E8F0;
    /* Slate-200 */
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
}

/* Reset & Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding-top: var(--header-height);
    /* Space for fixed header */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 75ch;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav li a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar-nav li a:hover {
    color: var(--color-accent);
}

.navbar-cta {
    display: none;
}

@media(min-width: 768px) {
    .navbar-cta {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--color-white);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    color: #CBD5E1;
    /* Slate-300 */
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

/* Cards & Grid */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.card h3 {
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: #94A3B8;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #CBD5E1;
}

.footer a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-white {
    background-color: var(--color-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-nav {
        display: none;
    }

    /* Simplified for now */
    h1 {
        font-size: 2.5rem;
    }
}/* Small Hero for Sub-pages */
.hero-small {
    position: relative;
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-small .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
    z-index: 1;
}

.hero-small h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--color-white);
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Feature Boxes for Index */
.feature-box {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}
