/**
 * critical.css - CRITICAL PATH CSS
 * Only styles needed for above-the-fold content (header area visible on first load)
 * Keep file size under 10KB
 * All other styles load asynchronously from all.css
 */

/* RESET & BASE */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: #333;
}

body {
    background-color: #fff;
}

/* TOP LINE - Contact Info */
.top-line {
    background: #f5f5f5;
    padding: 15px 0;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

.top-line .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-line .contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-line .contact span {
    display: flex;
    gap: 5px;
    align-items: center;
}

.top-line .contact img {
    width: 16px;
    height: 16px;
}

.top-line .contact a {
    color: #0066cc;
    text-decoration: none;
}

.top-line .social {
    display: flex;
    gap: 15px;
}

.top-line .social a {
    display: inline-block;
    width: 24px;
    height: 24px;
}

/* .top-line .social img {
    width: 100%;
    height: 100%;
    display: block;
} */

/* SITE HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

/* NAVIGATION */
nav {
    padding: 20px 0;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.navbar-header {
    flex: 1;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    gap: 6px;
}

.navbar-toggle .icon-bar {
    width: 25px;
    height: 3px;
    background: #333;
    display: block;
}

/* NAVBAR MENU */
.navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar-nav li {
    margin: 0;
}

.navbar-nav a {
    display: block;
    padding: 15px 20px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 15px;
}

.navbar-nav a:hover {
    color: #0066cc;
}

.navbar-nav li.active > a {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
}

/* MOBILE STYLES */
.hidden-xs {
    display: block;
}

@media (max-width: 768px) {
    .top-line .container {
        flex-direction: column;
        gap: 15px;
    }

    .top-line .contact {
        flex-direction: column;
        gap: 10px;
    }

    .top-line .social {
        justify-content: center;
        width: 100%;
    }

    nav .container {
        flex-wrap: wrap;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-collapse {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        flex-basis: 100%;
        order: 3;
    }

    .navbar-collapse.in {
        max-height: 500px;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav a {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
}

@media (max-width: 480px) {
    .top-line .container {
        padding: 0 10px;
    }

    .top-line {
        font-size: 12px;
    }

    nav .container {
        padding: 0 10px;
    }

    .navbar-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* HIDE ELEMENTS NOT IN CRITICAL PATH */
.site-content {
    /* Loaded after critical.css */
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* FONTS - Only critical font-family definitions */
/* Other font weights load with all.css */
body, button, input, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Print styles (minimal) */
@media print {
    .top-line {
        display: none;
    }
    
    nav {
        display: none;
    }
}

/**
 * NOTE FOR DEVELOPERS:
 * 
 * This file should stay UNDER 10KB
 * It loads SYNCHRONOUSLY (blocks render until loaded)
 * 
 * Move non-critical styles to all.css:
 * - Footer styles
 * - Sidebar/widget styles
 * - Pages below the fold
 * - Background images (use lazy loading)
 * - Animations/transitions
 * - Complex layouts
 */
