/* ==========================================================================
   Diamond Peak Design — Complete Visual Styling
   Design slug: design-diamond-peak
   ========================================================================== */

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

@font-face {
    font-family: 'DiamondpeakBody';
    src: url('../fonts/mulish-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-diamond-peak {
    background-color: #ffffff;
    
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(215,135,55,0.04) 10px, rgba(215,135,55,0.04) 11px);
}

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

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

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

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

.design-diamond-peak h1 { font-size: 2.1rem; }
.design-diamond-peak h2 { font-size: 1.7rem; }
.design-diamond-peak h3 { font-size: 1.4rem; }
.design-diamond-peak h4 { font-size: 1.15rem; }
.design-diamond-peak h5 { font-size: 1.05rem; }

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

.design-diamond-peak p {
    margin-bottom: 1.2em;
    font-size: 17px;
}

/* Links */
.design-diamond-peak a {
    color: #d78737;
    text-decoration: none;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.design-diamond-peak a:hover {
    color: #c57320;
}

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

.design-diamond-peak li {
    margin-bottom: 0.4em;
}

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

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

/* --------------------------------------------------------------------------
   7. CTA Button (in header)
   -------------------------------------------------------------------------- */
.diahdr-cta {
    display: none;
    padding: 11px 26px;
    background: #d78737;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'DiamondpeakBody', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-left: 12px;
}

.diahdr-cta:hover {
    background: #c57320;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transform: none;
}

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


/* --------------------------------------------------------------------------
   Header — Centered Brand
   -------------------------------------------------------------------------- */
.diahdr-wrap {
    background: #2e251f;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.diahdr-brand-row {
    text-align: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(215, 135, 55, 0.2);
}

.diahdr-brand {
    display: inline-block;
}

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

.diahdr-brand img {
    max-height: 50px;
    width: auto;
    display: block;
}

.diahdr-sitename {
    font-family: 'DiamondpeakHeading', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.diahdr-sitename:hover {
    color: #d78737;
}

.diahdr-navrow {
    background: #29201a;
    border-bottom: 1px solid #d78737;
}

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

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

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

.diahdr-menu li {
    position: relative;
}

.diahdr-menu > li > a {
    display: block;
    padding: 0 20px;
    line-height: 50px;
    color: #dbdbdb;
    text-decoration: none;
    font-family: 'DiamondpeakBody', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diahdr-menu > li > a:hover,
.diahdr-menu > li.current-menu-item > a {
    color: #d78737;
    background: rgba(215, 135, 55, 0.12);
    border-radius: 4px;
}

/* Dropdown */
.diahdr-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #29201a;
    border-top: 2px solid #d78737;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: none;
    z-index: 200;
}

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

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

.diahdr-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(215, 135, 55, 0.12);
}

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

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

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

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

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


/* --------------------------------------------------------------------------
   Tables — Bordered Style
   -------------------------------------------------------------------------- */
.design-diamond-peak .entry-content table,
.design-diamond-peak .page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    border: 2px solid #2e251f;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.design-diamond-peak .entry-content th,
.design-diamond-peak .page-content th {
    background: #2e251f;
    color: #ffffff;
    padding: 8px 12px;
    text-align: left;
    font-family: 'DiamondpeakHeading', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #2e251f;
}

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

.design-diamond-peak .entry-content tr:hover td,
.design-diamond-peak .page-content tr:hover td {
    background: #fcf5ef;
}


/* --------------------------------------------------------------------------
   Footer — Minimal Single Line
   -------------------------------------------------------------------------- */
.diaft-wrap {
    background: #2e251f;
    color: #a8a8a8;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #d78737;
}

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

.diaft-line {
    margin: 0 0 8px;
    font-family: 'DiamondpeakBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #999999;
}

.diaft-nav {
    margin-top: 8px;
}

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

.diaft-menu a {
    color: #a8a8a8;
    text-decoration: none;
    font-family: 'DiamondpeakBody', Arial, sans-serif;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.diaft-menu a:hover {
    color: #d78737;
}


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

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

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

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

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

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

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

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

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

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

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

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

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

    .design-diamond-peak p {
        font-size: 0.95rem;
    }

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