/* Common Styles for Esox Media Website */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 900px; }
.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }

/* Header */
.header {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}
.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo { 
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo-icon {
    height: 48px;
    width: auto;
}
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: #4b5563; text-decoration: none; font-weight: 500; font-size: 0.9375rem; transition: color 0.2s; }
.nav a:hover { color: #111827; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #111827;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 1rem;
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .header {
        position: relative;
    }
    .header.sticky {
        position: sticky;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1rem;
}
h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}
p {
    color: #4b5563;
    margin-bottom: 1rem;
}
a {
    color: #6366f1;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.875rem;
    color: #6b7280;
}
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer a { color: #6b7280; text-decoration: none; font-weight: 500; }
.footer a:hover { color: #111827; }

/* Content Pages */
.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.content-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-page h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.content-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}
.content-page li {
    margin-bottom: 0.5rem;
}
