/* 
   Craig.ar Redesign - Zen Aesthetic 
   Modern, Clean, Responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700&display=swap');

:root {
    /* Color Palette - Zen Education */
    --color-bg: #f4f4f5;
    /* Soft grey/white */
    --color-surface: #ffffff;
    --color-text-main: #1f2937;
    /* Dark cool grey */
    --color-text-light: #6b7280;
    --color-primary: #374151;
    /* Charcoal for professional look */
    --color-accent: #10b981;
    /* Emerald/Green for growth/status */
    --color-accent-hover: #059669;
    --color-border: #e5e7eb;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 244, 246, 0.9) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --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);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Grid Layouts */
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* Components */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: auto;
    /* Matches user request for full image */
    min-height: unset;
    display: block;
    margin-top: 60px;
    /* Offset for fixed navbar */
    overflow: hidden;
}

.hero-bg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.hero-content {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-main);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

/* Features/Highlights */
.feature-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--color-surface);
    color: var(--color-text-main);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    text-align: left;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--color-text-light);
}

.social-links a:hover {
    color: var(--color-accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Mobile adjustments if needed, but hero adapts naturally now */

    .hero h1 {
        font-size: 1.1rem;
        /* Extremely small heading */
        margin-bottom: 0;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
        /* Enhance contrast */
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }

    .hero-content {
        padding: 0.25rem;
        width: auto;
        /* Allow it to shrink to fit content */
        min-width: 200px;
        /* But keep a minimum */
        max-width: 90%;
        background: rgba(255, 255, 255, 0.15);
        /* Very transparent */
        backdrop-filter: blur(1px);
        /* Almost invisible blur */
        margin-bottom: 0.25rem;
        border-radius: var(--radius-sm);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        border: none;
    }


    /* Override inline styles for compactness */
    .hero-content .social-hero {
        margin-top: 0.25rem !important;
        display: flex;
        gap: 0.5rem;
    }

    .hero-content .btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        line-height: 1;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}