/* Critical CSS for above-the-fold content — light professional theme */
/* Google Fonts for Inter/Plus Jakarta Sans loaded via functions.php */

:root {
    --primary-color: #2563eb;
    --secondary-color: #ea580c;
    --accent-color: #059669;
    --color-dark: #111827;
    --color-bg: #f8fafc;
    --text-color: #111827;
    --text-light: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
    --header-bg: #0f172a;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-primary);
    --transition-normal: 0.3s ease;
    --header-height: 120px;
    --admin-bar-height: 0px;
}

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--color-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header — dark, sticky, professional */
.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    contain: layout style paint;
}

.top-bar {
    background: rgba(0,0,0,0.25);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    font-size: 0.9rem;
}

.social-link:hover {
    color: #fff;
}

/* Logo + Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    margin: 0;
    letter-spacing: -0.02em;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin: 0;
}

/* Navigation */
.main-navigation {
    margin-left: auto;
}

.primary-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.primary-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
    font-size: 0.95rem;
}

.primary-menu a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* Hero — rich blue gradient */
.hero-section {
    background:
        radial-gradient(ellipse 120% 80% at 0% 0%, rgba(99,179,237,0.3), transparent 60%),
        radial-gradient(ellipse 100% 60% at 100% 0%, rgba(59,130,246,0.25), transparent 55%),
        linear-gradient(160deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    contain: layout paint style;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title,
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.88;
    line-height: 1.65;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
    .primary-menu {
        display: none;
    }

    .hero-section {
        padding: 3.5rem 0 3rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Single post critical spacing */
.single .site-main { padding-top: 0 !important; }
.single header.review-header { padding: 0.75rem 0 !important; margin-top: 0 !important; }
.single .review-title { margin-top: 0 !important; }
.single .site-main > *:first-child { margin-top: 0 !important; }
