/* ============================================================
   ME777 GLOBAL STYLESHEET
   Shared across all pages. Do not edit per-page.
   ============================================================ */

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #0b0b0b;
    color: #f0f0f0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: min(1100px, 94%);
    margin: 0 auto;
    padding: 0 10px;
}

/* ===== SECTION VARIANTS ===== */
.section { padding: 50px 0; }

.section-dark {
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-red {
    background: linear-gradient(145deg, #1a0505, #0d0d0d 60%, #1a0303);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-light {
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ===== TYPOGRAPHY ===== */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff5c63;
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    background: #e50914;
    border-radius: 2px;
}

h1 { font-size: 2.6rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

.title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 10px 0 16px;
}
.title span { color: #e50914; }

.text {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 720px;
}
.text strong { color: #fff; font-weight: 700; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.25s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: #e50914;
    color: #fff;
    box-shadow: 5px 5px 0 #4f0408;
}
.btn-primary:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 #4f0408; }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: #e50914; color: #e50914; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ===== HEADER ===== */
.header {
    background: rgba(7,7,7,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0;
    position: sticky !important;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e50914;
    object-fit: cover;
}

/* ===== NAV MENU ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
    transition: 0.2s;
    white-space: nowrap;
}
.nav-link:hover { color: #fff; }

.nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    color: #888;
    transition: transform 0.25s, color 0.2s;
    font-style: normal;
    pointer-events: none;
}
.nav-item:hover .nav-arrow {
    color: #e50914;
    transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #0e0e0e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px;
    margin-top: 6px;
    list-style: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.22s ease;
    z-index: 60;
}
.nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 9px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #bbb;
    border-radius: 6px;
    transition: 0.18s;
}
.dropdown a:hover {
    background: #e50914;
    color: #fff;
}

/* ===== BURGER ===== */
.burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .burger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 0 30px;
        overflow-y: auto;
        transition: right 0.35s ease;
        border-left: 1px solid rgba(255,255,255,0.08);
        box-shadow: -10px 0 40px rgba(0,0,0,0.6);
        z-index: 99;
    }
    .nav-menu.active { right: 0; }

    .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
    }

    .nav-link {
        padding: 15px 20px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav-link-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav-link-row .nav-link {
        flex: 1;
        border-bottom: none;
    }

    .nav-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        background: transparent;
        border: none;
        border-left: 1px solid rgba(255,255,255,0.06);
        color: #888;
        font-size: 0.75rem;
        cursor: pointer;
        transition: 0.2s;
        flex-shrink: 0;
    }
    .nav-toggle-btn:hover { color: #e50914; }
    .nav-item.open .nav-toggle-btn { color: #e50914; }
    .nav-item.open .nav-toggle-btn .nav-arrow { transform: rotate(180deg); }
    .nav-toggle-btn .nav-arrow { pointer-events: auto; }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #070707;
        transition: max-height 0.35s ease;
    }
    .nav-item.open > .dropdown { max-height: 500px; }
    .dropdown a {
        padding: 12px 20px 12px 36px;
        font-size: 0.7rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 98;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Desktop: arrow is display-only */
@media (min-width: 901px) {
    .nav-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        pointer-events: none;
        cursor: default;
    }
    .nav-toggle-btn .nav-arrow { pointer-events: none; }
    .nav-overlay { display: none; }
}

/* ===== HERO (TEXT ONLY) ===== */
.hero {
    padding: 40px 0 50px;
    background: radial-gradient(circle at 70% 30%, rgba(229,9,20,0.12), transparent 55%), linear-gradient(135deg, #0a0a0a, #141414);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero-content { max-width: 800px; }
.hero h1 {
    font-size: 2.4rem;
    font-weight: 1000;
    line-height: 1.0;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 8px 0 12px;
}
.hero h1 span { color: #e50914; }
.hero .text { max-width: 620px; font-size: 0.95rem; }

/* ===== HERO (WITH IMAGE) ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-grid .hero-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}
.hero-image {
    max-width: 340px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(229,9,20,0.15);
    border: 1px solid #333;
}
.hero-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ===== TABLE ===== */
.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #0d0d0d;
    min-width: 460px;
}
.table-wrap th {
    background: #e50914;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 10px 14px;
    text-align: left;
}
.table-wrap td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ccc;
}
.table-wrap tr:last-child td { border-bottom: none; }

/* ===== EXPERTISE GRID (used in author page) ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 0;
}
.expertise-item {
    background: #141414;
    border-left: 3px solid #e50914;
    padding: 14px 18px;
    border-radius: 4px;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
}
.expertise-item strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

/* ===== FOOTER ===== */
.footer {
    background: #060606;
    padding: 35px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer .logo {
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.footer .logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e50914;
    object-fit: cover;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin: 14px 0 12px;
}
.footer-links a {
    color: #888;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}
.footer-links a:hover { color: #e50914; }
.footer p { color: #555; font-size: 0.65rem; letter-spacing: 1px; }
.footer .copy { font-size: 0.55rem; color: #444; margin-top: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero { padding: 30px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero-grid .hero-content { align-items: center; }
    .hero-image { max-width: 260px; }
    .section { padding: 40px 0; }
    h1 { font-size: 2.2rem; }
    .title { font-size: 1.8rem; }
    h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2rem; }
    .title { font-size: 1.6rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }
    .btn-group .btn { width: 100%; justify-content: center; }
    .section { padding: 30px 0; }
    .hero-image { max-width: 200px; }
    .expertise-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.8rem; }
    .hero h1 { font-size: 1.8rem; }
    .title { font-size: 1.4rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    .hero { padding: 20px 0 30px; }
    .hero-image { max-width: 160px; }
    .table-wrap table { font-size: 0.7rem; min-width: 340px; }
    .table-wrap th, .table-wrap td { padding: 6px 10px; }
    .section { padding: 25px 0; }
    .text { font-size: 0.85rem; }
    .btn { font-size: 0.65rem; min-height: 40px; padding: 0 18px; }
    .container { padding: 0 8px; }
    .footer-links { gap: 6px 12px; }
    .footer-links a { font-size: 0.55rem; }
    .expertise-item { font-size: 0.8rem; padding: 12px 14px; }
}

@media (max-width: 400px) {
    .container { width: 98%; padding: 0 6px; }
    h1 { font-size: 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .title { font-size: 1.2rem; }
    h2 { font-size: 1.2rem; }
    .hero-image { max-width: 130px; }
    .table-wrap table { font-size: 0.6rem; min-width: 280px; }
    .table-wrap th, .table-wrap td { padding: 5px 6px; }
    .btn { font-size: 0.6rem; min-height: 36px; padding: 0 14px; }
    .section { padding: 20px 0; }
    .text { font-size: 0.8rem; }
    .hero { padding: 15px 0 25px; }
    .expertise-item { font-size: 0.75rem; padding: 10px 12px; }
}