/* ==========================================================================
   Diamond Wave Design — Complete Visual Styling
   Design slug: design-diamond-wave
   ========================================================================== */

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

@font-face {
    font-family: 'DiamondwaveBody';
    src: url('../fonts/roboto-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-wave {
    background-color: #ffffff;
    
    background-image: linear-gradient(rgba(218,11,170,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(218,11,170,0.05) 1px, transparent 1px); background-size: 24px 24px;
}

/* --------------------------------------------------------------------------
   4. Skip Link
   -------------------------------------------------------------------------- */
.diahdr-skip {
    position: absolute;
    top: -100%;
    left: 0;
    background: #da0baa;
    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: 1200px;
    margin: 0 auto;
    padding: 35px 20px 60px;
    min-height: 50vh;
}

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

.design-diamond-wave h1 { font-size: 2.3rem; }
.design-diamond-wave h2 { font-size: 1.7rem; }
.design-diamond-wave h3 { font-size: 1.4rem; }
.design-diamond-wave h4 { font-size: 1.15rem; }
.design-diamond-wave h5 { font-size: 0.95rem; }

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

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


/* Heading align: left (no overrides) */


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

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

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

.design-diamond-wave a:hover {
    color: #b8058e;
}

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

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

/* List marker: dash */
.design-diamond-wave .entry-content ul {
    list-style: none;
    padding-left: 1.4em;
}
.design-diamond-wave .entry-content ul > li {
    position: relative;
}
.design-diamond-wave .entry-content ul > li::before {
    content: "\2014";
    position: absolute;
    left: -1.4em;
    color: #da0baa;
}


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

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

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

.diahdr-cta:hover {
    background: #b8058e;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    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: 0;
    overflow: hidden;
    transition: border-color 0.2s;
}
.diahdr-search-form:focus-within {
    border-color: #da0baa;
}
.diahdr-search-input {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #444444;
    font-family: 'DiamondwaveBody', 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: #444444;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.diahdr-search-btn:hover {
    color: #da0baa;
}


/* --------------------------------------------------------------------------
   Header — Light Background
   -------------------------------------------------------------------------- */
.diahdr-wrap {
    background: #ffffff;
    padding: 0;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid #da0baa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

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

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

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

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

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

/* 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: inline-flex;
    align-items: center;
    padding: 10px 18px;
    line-height: 1.2;
    color: #444444;
    text-decoration: none;
    font-family: 'DiamondwaveBody', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.diahdr-menu > li > a:hover,
.diahdr-menu > li.current-menu-item > a {
    color: #da0baa;
    background: rgba(218, 11, 170, 0.08);
    border-radius: 0;
}

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

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

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

.diahdr-menu .sub-menu a:hover {
    color: #da0baa;
    background: rgba(218, 11, 170, 0.08);
}

/* 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;
}

.diahdr-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fcfcfc;
    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);
}

/* Search bar — light variant */
.diahdr-search-form {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
}
.diahdr-search-input { color: #444; }
.diahdr-search-input::placeholder { color: rgba(0,0,0,0.3); }
.diahdr-search-btn { color: #666; }


/* --------------------------------------------------------------------------
   Tables — Card Style (rounded, elevated)
   -------------------------------------------------------------------------- */
.design-diamond-wave .entry-content table,
.design-diamond-wave .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: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.design-diamond-wave .entry-content th,
.design-diamond-wave .page-content th {
    background: #fcfcfc;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-family: 'DiamondwaveHeading', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

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

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

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

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


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

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

.diaft-line {
    margin: 0 0 8px;
    font-family: 'DiamondwaveBody', 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: #cccccc;
    text-decoration: none;
    font-family: 'DiamondwaveBody', Arial, sans-serif;
    font-size: 0.8rem;
    transition: color 0.2s;
}

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


/* --------------------------------------------------------------------------
   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: #eeeded;
        border-top: 2px solid #da0baa;
        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-wave h1 { font-size: 1.6rem; }
    .design-diamond-wave h2 { font-size: 1.35rem; }
    .design-diamond-wave h3 { font-size: 1.15rem; }

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

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