/* ==========================================================================
   Shadow Drift Design — Complete Visual Styling
   Design slug: design-shadow-drift
   ========================================================================== */

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

@font-face {
    font-family: 'ShadowdriftBody';
    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-shadow-drift {
    background-color: #ffffff;
    
    
}

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

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

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

/* --------------------------------------------------------------------------
   6. Content Typography (scoped with body class)
   -------------------------------------------------------------------------- */
.design-shadow-drift h1,
.design-shadow-drift h2,
.design-shadow-drift h3,
.design-shadow-drift h4,
.design-shadow-drift h5 {
    font-family: 'ShadowdriftHeading', Arial, sans-serif;
    color: #21252c;
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.design-shadow-drift h1 { font-size: 2.3rem; }
.design-shadow-drift h2 { font-size: 1.8rem; }
.design-shadow-drift h3 { font-size: 1.4rem; }
.design-shadow-drift h4 { font-size: 1.1rem; }
.design-shadow-drift h5 { font-size: 1rem; }

.design-shadow-drift body,
.design-shadow-drift p,
.design-shadow-drift li,
.design-shadow-drift td,
.design-shadow-drift th {
    font-family: 'ShadowdriftBody', Arial, sans-serif;
    color: #333333;
    line-height: 1.65;
}

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

/* Links */
.design-shadow-drift a {
    color: #3a74d9;
    text-decoration: none;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.design-shadow-drift a:hover {
    color: #205ecb;
}

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

.design-shadow-drift li {
    margin-bottom: 0.4em;
}

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

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

/* --------------------------------------------------------------------------
   7. CTA Button (in header)
   -------------------------------------------------------------------------- */
.shahdr-cta {
    display: none;
    padding: 12px 32px;
    background: #3a74d9;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: 'ShadowdriftBody', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-left: 12px;
}

.shahdr-cta:hover {
    background: #205ecb;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ── Search Bar ────────────────────────────────────────── */
.shahdr-search {
    margin-left: 12px;
    position: relative;
}
.shahdr-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: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.shahdr-search-form:focus-within {
    border-color: #3a74d9;
}
.shahdr-search-input {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e0e0e0;
    font-family: 'ShadowdriftBody', Arial, sans-serif;
    font-size: 0.85rem;
    width: 160px;
    outline: none;
}
.shahdr-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.shahdr-search-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.shahdr-search-btn:hover {
    color: #3a74d9;
}


/* --------------------------------------------------------------------------
   Header — Solid Bar
   -------------------------------------------------------------------------- */
.shahdr-wrap {
    background: #21252c;
    padding: 0;
    position: relative;
    z-index: 100;
    border-bottom: 4px solid #3a74d9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

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

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

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

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

.shahdr-sitename:hover {
    color: #3a74d9;
}

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

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

.shahdr-menu li {
    position: relative;
}

.shahdr-menu > li > a {
    display: block;
    padding: 0 18px;
    line-height: 65px;
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'ShadowdriftBody', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.shahdr-menu > li > a:hover,
.shahdr-menu > li.current-menu-item > a {
    color: #ffffff;
    background: rgba(58, 116, 217, 0.18);
    border-radius: 10px;
}

/* Dropdown */
.shahdr-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #17191c;
    border-top: 2px solid #3a74d9;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    display: none;
    z-index: 200;
}

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

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

.shahdr-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(58, 116, 217, 0.18);
}

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

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

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

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

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


/* --------------------------------------------------------------------------
   Tables — Card Style (rounded, elevated)
   -------------------------------------------------------------------------- */
.design-shadow-drift .entry-content table,
.design-shadow-drift .page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.design-shadow-drift .entry-content th,
.design-shadow-drift .page-content th {
    background: #21252c;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-family: 'ShadowdriftHeading', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.design-shadow-drift .entry-content td,
.design-shadow-drift .page-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}

.design-shadow-drift .entry-content tr:last-child td,
.design-shadow-drift .page-content tr:last-child td {
    border-bottom: none;
}

.design-shadow-drift .entry-content tr:nth-child(even) td,
.design-shadow-drift .page-content tr:nth-child(even) td {
    background: #f8f8f8;
}

.design-shadow-drift .entry-content tr:hover td,
.design-shadow-drift .page-content tr:hover td {
    background: #eff4fc;
}


/* --------------------------------------------------------------------------
   Footer — Stacked Two-Row
   -------------------------------------------------------------------------- */
.shaft-wrap {
    background: #21252c;
    color: #adadad;
    margin-top: 40px;
    border-top: 4px solid #3a74d9;
}

.shaft-links-row {
    padding: 20px 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.shaft-row-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.shaft-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.shaft-menu a {
    color: #adadad;
    text-decoration: none;
    font-family: 'ShadowdriftBody', Arial, sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.shaft-menu a:hover {
    color: #3a74d9;
}

.shaft-info-row {
    padding: 15px 0;
}

.shaft-info-row .shaft-row-inner {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.shaft-copyright {
    margin: 0;
    font-family: 'ShadowdriftBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #999999;
}

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


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

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

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

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

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

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

    /* Dropdown on mobile: always visible */
    .shahdr-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 */
    .shaft-inner {
        flex-direction: column;
        text-align: center;
    }

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

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

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

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

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

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

    .design-shadow-drift p {
        font-size: 0.95rem;
    }

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