/* ==========================================================================
   Midnight Strike Design — Complete Visual Styling
   Design slug: design-midnight-strike
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font Declarations
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'MidnightstrikeHeading';
    src: url('../fonts/montserrat-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MidnightstrikeBody';
    src: url('../fonts/opensans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. GP Remnant Safety Rule (ONLY allowed !important usage)
   -------------------------------------------------------------------------- */
.site-header,
.main-navigation,
.site-footer,
.site-info,
.top-bar {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. Body / Page Background
   -------------------------------------------------------------------------- */
.design-midnight-strike {
    background-color: #ffffff;
    
    background-image: linear-gradient(rgba(237,61,12,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(237,61,12,0.02) 1px, transparent 1px); background-size: 24px 24px;
}

/* --------------------------------------------------------------------------
   4. Skip Link
   -------------------------------------------------------------------------- */
.midhdr-skip {
    position: absolute;
    top: -100%;
    left: 0;
    background: #ed3d0c;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 14px;
    text-decoration: none;
}

.midhdr-skip:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   5. Content Area
   -------------------------------------------------------------------------- */
.midhdr-site-content {
    max-width: 1050px;
    margin: 0 auto;
    padding: 35px 20px 60px;
    min-height: 50vh;
}

/* --------------------------------------------------------------------------
   6. Content Typography (scoped with body class)
   -------------------------------------------------------------------------- */
.design-midnight-strike h1,
.design-midnight-strike h2,
.design-midnight-strike h3,
.design-midnight-strike h4,
.design-midnight-strike h5 {
    font-family: 'MidnightstrikeHeading', Arial, sans-serif;
    color: #150c0a;
    line-height: 1.25;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.design-midnight-strike h1 { font-size: 2rem; }
.design-midnight-strike h2 { font-size: 1.8rem; }
.design-midnight-strike h3 { font-size: 1.3rem; }
.design-midnight-strike h4 { font-size: 1.15rem; }
.design-midnight-strike h5 { font-size: 1rem; }

/* Collapse top margin on the first element of content so the title sits close to the header. */
.design-midnight-strike .entry-content > :first-child,
.design-midnight-strike article > :first-child {
    margin-top: 0;
}

/* Heading treatment: underline-after */
.design-midnight-strike .entry-content h2 {
    padding-bottom: 0.35em;
    position: relative;
}
.design-midnight-strike .entry-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #ed3d0c;
}


/* Heading align: center-h1 */
.design-midnight-strike .entry-content h1 {
    text-align: center;
}
.design-midnight-strike .entry-content h1::after {
    left: 50%;
    transform: translateX(-50%);
}


.design-midnight-strike body,
.design-midnight-strike p,
.design-midnight-strike li,
.design-midnight-strike td,
.design-midnight-strike th {
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    color: #333333;
    line-height: 1.7;
}

.design-midnight-strike p {
    margin-bottom: 1.2em;
    font-size: 15px;
}

/* Links */
.design-midnight-strike a {
    color: #ed3d0c;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.design-midnight-strike a:hover {
    color: #cc3005;
}

/* Lists */
.design-midnight-strike ul,
.design-midnight-strike ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.design-midnight-strike li {
    margin-bottom: 0.4em;
}

/* List marker: default (no overrides) */


/* Images */
.design-midnight-strike .entry-content img,
.design-midnight-strike .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

/* Dividers */
.design-midnight-strike hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

/* --------------------------------------------------------------------------
   7. CTA Button (in header)
   -------------------------------------------------------------------------- */
.midhdr-cta {
    display: none;
    padding: 12px 28px;
    background: #ed3d0c;
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s;
    margin-left: 12px;
}

.midhdr-cta:hover {
    background: #cc3005;
    color: #fff;
    text-decoration: none;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.9);
    transform: translate(-2px,-2px);
}

/* ── Search Bar ────────────────────────────────────────── */
.midhdr-search {
    margin-left: 12px;
    position: relative;
}
.midhdr-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s;
}
.midhdr-search-form:focus-within {
    border-color: #ed3d0c;
}
.midhdr-search-input {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e0e0e0;
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    font-size: 0.85rem;
    width: 160px;
    outline: none;
}
.midhdr-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.midhdr-search-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.midhdr-search-btn:hover {
    color: #ed3d0c;
}


/* --------------------------------------------------------------------------
   Header — Solid Bar
   -------------------------------------------------------------------------- */
.midhdr-wrap {
    background: #150c0a;
    padding: 0;
    position: relative;
    z-index: 100;
    border-bottom: 4px solid #ed3d0c;
    box-shadow: 0 4px 0 rgba(0,0,0,0.9);
}

.midhdr-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 73px;
}

.midhdr-brand {
    flex-shrink: 0;
}

.midhdr-brand a {
    text-decoration: none;
}

.midhdr-brand img {
    max-height: 45px;
    width: auto;
    display: block;
}

.midhdr-sitename {
    font-family: 'MidnightstrikeHeading', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.midhdr-sitename:hover {
    color: #ed3d0c;
}

/* Navigation */
.midhdr-nav {
    display: flex;
    align-items: center;
}

.midhdr-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.midhdr-menu li {
    position: relative;
}

.midhdr-menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    line-height: 1.2;
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.midhdr-menu > li > a:hover,
.midhdr-menu > li.current-menu-item > a {
    color: #ffffff;
    background: rgba(237, 61, 12, 0.2);
    border-radius: 0;
}

/* Dropdown */
.midhdr-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #070403;
    border-top: 2px solid #ed3d0c;
    border-radius: 0 0 0 0;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.9);
    display: none;
    z-index: 200;
}

.midhdr-menu li:hover > .sub-menu {
    display: block;
}

.midhdr-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #c8c8c8;
    text-decoration: none;
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
}

.midhdr-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(237, 61, 12, 0.2);
}

/* Mobile Menu Toggle (hidden on desktop) */
.midhdr-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 150;
}

.midhdr-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s, opacity 0.3s;
}

.midhdr-toggle[aria-expanded="true"] .midhdr-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.midhdr-toggle[aria-expanded="true"] .midhdr-toggle-bar:nth-child(2) {
    opacity: 0;
}

.midhdr-toggle[aria-expanded="true"] .midhdr-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* --------------------------------------------------------------------------
   Tables — Bordered Style
   -------------------------------------------------------------------------- */
.design-midnight-strike .entry-content table,
.design-midnight-strike .page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    border: 2px solid #150c0a;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.9);
}

.design-midnight-strike .entry-content th,
.design-midnight-strike .page-content th {
    background: #150c0a;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-family: 'MidnightstrikeHeading', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #150c0a;
}

.design-midnight-strike .entry-content td,
.design-midnight-strike .page-content td {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.design-midnight-strike .entry-content tr:hover td,
.design-midnight-strike .page-content tr:hover td {
    background: #feefec;
}


/* --------------------------------------------------------------------------
   Footer — Inline Three-Column
   -------------------------------------------------------------------------- */
.midft-wrap {
    background: #150c0a;
    color: #b0b0b0;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 4px solid #ed3d0c;
}

.midft-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.midft-copyright p {
    margin: 0;
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    font-size: 0.85rem;
    color: #999999;
}

.midft-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.midft-menu a {
    color: #b0b0b0;
    text-decoration: none;
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.midft-menu a:hover {
    color: #ed3d0c;
}

.midft-small {
    margin: 0;
    font-family: 'MidnightstrikeBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #777777;
}


/* --------------------------------------------------------------------------
   Responsive — Tablet (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Show hamburger */
    .midhdr-toggle {
        display: flex;
    }

    /* Hide desktop nav, show when toggled */
    .midhdr-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #070403;
        border-top: 2px solid #ed3d0c;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 200;
    }

    .midhdr-nav.is-open {
        display: block;
    }

    .midhdr-menu {
        flex-direction: column;
        padding: 10px 0;
    }

    .midhdr-menu > li > a {
        line-height: 1.4;
        padding: 12px 20px;
    }

    .midhdr-search {
        margin: 0;
        padding: 10px 20px;
    }
    .midhdr-search-input {
        width: 100%;
    }

    /* Dropdown on mobile: always visible */
    .midhdr-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0, 0, 0, 0.15);
        padding-left: 15px;
        display: block;
        transform: none;
    }

    /* Footer adjustments */
    .midft-inner {
        flex-direction: column;
        text-align: center;
    }

    .midft-menu {
        justify-content: center;
    }

    /* Content */
    .midhdr-site-content {
        padding: 25px 15px 40px;
    }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .midhdr-inner {
        height: 60px;
        padding: 0 15px;
    }

    .midhdr-sitename {
        font-size: 1.15rem;
    }

    .midhdr-brand img {
        max-height: 35px;
    }

    .design-midnight-strike h1 { font-size: 1.6rem; }
    .design-midnight-strike h2 { font-size: 1.35rem; }
    .design-midnight-strike h3 { font-size: 1.15rem; }

    .design-midnight-strike p {
        font-size: 0.95rem;
    }

    .midhdr-site-content {
        padding: 20px 12px 30px;
    }
}
