/* ==========================================================================
   Vivid Matrix Design — Complete Visual Styling
   Design slug: design-vivid-matrix
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font Declarations
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'VividmatrixHeading';
    src: url('../fonts/anton-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VividmatrixBody';
    src: url('../fonts/karla-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-vivid-matrix {
    background-color: #ffffff;
    
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cdefs%3E%3Cstyle%3Epath%7Bfill%3Anone%3Bstroke%3Argba%28253%2C131%2C18%2C0.03%29%3Bstroke-width%3A1%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M40%2010%20Q60%2030%2080%2020%20T120%2030%20T160%2020%22%2F%3E%3Cpath%20d%3D%22M20%2050%20Q50%2070%2080%2055%20T140%2065%20T180%2050%22%2F%3E%3Cpath%20d%3D%22M10%2090%20Q40%20110%2070%2095%20T130%20105%20T190%2085%22%2F%3E%3Cpath%20d%3D%22M30%20130%20Q60%20150%2090%20135%20T150%20145%20T180%20130%22%2F%3E%3Cpath%20d%3D%22M15%20170%20Q45%20190%2075%20175%20T135%20185%20T175%20170%22%2F%3E%3C%2Fsvg%3E"); background-size: 200px 200px;
}

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

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

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

/* --------------------------------------------------------------------------
   6. Content Typography (scoped with body class)
   -------------------------------------------------------------------------- */
.design-vivid-matrix h1,
.design-vivid-matrix h2,
.design-vivid-matrix h3,
.design-vivid-matrix h4,
.design-vivid-matrix h5 {
    font-family: 'VividmatrixHeading', Arial, sans-serif;
    color: #221911;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.design-vivid-matrix h1 { font-size: 2.1rem; }
.design-vivid-matrix h2 { font-size: 1.8rem; }
.design-vivid-matrix h3 { font-size: 1.3rem; }
.design-vivid-matrix h4 { font-size: 1.15rem; }
.design-vivid-matrix h5 { font-size: 0.95rem; }

.design-vivid-matrix body,
.design-vivid-matrix p,
.design-vivid-matrix li,
.design-vivid-matrix td,
.design-vivid-matrix th {
    font-family: 'VividmatrixBody', Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
}

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

/* Links */
.design-vivid-matrix a {
    color: #fd8312;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.design-vivid-matrix a:hover {
    color: #e66f00;
}

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

.design-vivid-matrix li {
    margin-bottom: 0.4em;
}

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

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

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

.vivhdr-cta:hover {
    background: #e66f00;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(253,131,18,0.35);
    transform: translateY(-3px);
}

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


/* --------------------------------------------------------------------------
   Header — Solid Bar
   -------------------------------------------------------------------------- */
.vivhdr-wrap {
    background: #221911;
    padding: 0;
    position: relative;
    z-index: 100;
    border-bottom: 3px solid #fd8312;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

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

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

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

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

.vivhdr-sitename:hover {
    color: #fd8312;
}

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

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

.vivhdr-menu li {
    position: relative;
}

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

.vivhdr-menu > li > a:hover,
.vivhdr-menu > li.current-menu-item > a {
    color: #ffffff;
    background: rgba(253, 131, 18, 0.15);
    border-radius: 12px;
}

/* Dropdown */
.vivhdr-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #110d09;
    border-top: 2px solid #fd8312;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    z-index: 200;
}

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

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

.vivhdr-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(253, 131, 18, 0.15);
}

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

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

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

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

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


/* --------------------------------------------------------------------------
   Tables — Card Style (rounded, elevated)
   -------------------------------------------------------------------------- */
.design-vivid-matrix .entry-content table,
.design-vivid-matrix .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.08);
}

.design-vivid-matrix .entry-content th,
.design-vivid-matrix .page-content th {
    background: #221911;
    color: #ffffff;
    padding: 8px 12px;
    text-align: left;
    font-family: 'VividmatrixHeading', Arial, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
}

.design-vivid-matrix .entry-content td,
.design-vivid-matrix .page-content td {
    padding: 8px 12px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}

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

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

.design-vivid-matrix .entry-content tr:hover td,
.design-vivid-matrix .page-content tr:hover td {
    background: #fff5ec;
}


/* --------------------------------------------------------------------------
   Footer — Stacked Two-Row
   -------------------------------------------------------------------------- */
.vivft-wrap {
    background: #221911;
    color: #b8b8b8;
    margin-top: 40px;
    border-top: 3px solid #fd8312;
}

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

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

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

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

.vivft-menu a:hover {
    color: #fd8312;
}

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

    .design-vivid-matrix p {
        font-size: 0.95rem;
    }

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