/*
 * Dynamic Content Hub — header, footer, and global banner styles.
 */

.dch-header,
.dch-footer {
    font-family: 'Inter', sans-serif;
}

.dch-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--dch-header-bg, #ffffff);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    font-family: var(--font-primary);
    border-bottom: var(--dch-header-border-width, 0) solid var(--dch-header-border-color, transparent);
}

/* Hide default theme headers and footers to allow sitewide override */
body.has-dch-header header.site-header,
body.has-dch-header footer.site-footer,
body.has-dch-header .elementor-location-header,
body.has-dch-header .elementor-location-footer {
    display: none !important;
}

/* Remove default theme gaps injected below hidden headers */
body.has-dch-header .site-main,
body.has-dch-header .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix wpautop injecting empty paragraphs between header and the first section */
body.has-dch-header > p:empty,
body.has-dch-header > br,
body.has-dch-header .site-main > p:empty,
body.has-dch-header .site-content > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


.dch-header__top {
    background: var(--dch-navy);
    color: rgba(255, 255, 255, 0.88);
    padding: 7px 0;
    font-size: 0.8125rem;
}

.dch-header__top-inner,
.dch-header__main-inner {
    max-width: var(--dch-header-width, 1280px);
    margin: 0 auto;
    padding: 0 24px;
}

.dch-footer__main,
.dch-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.dch-header__top-inner,
.dch-header__main-inner,
.dch-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dch-header__top-contacts,
.dch-header__top-social,
.dch-footer__social,
.dch-nav,
.dch-nav__list {
    display: flex;
    align-items: center;
}

.dch-header__top-contacts {
    gap: 18px;
}

.dch-header__top-social,
.dch-footer__social {
    gap: 10px;
}

.dch-header__top-link,
.dch-footer__contact-item a,
.dch-footer__contact-item span {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.dch-header__top-link i {
    color: var(--dch-red);
}

.dch-header__top-link:hover {
    color: #ffffff !important;
}

.dch-header__top-link i.fa-phone-alt {
    transform: scaleX(-1);
    display: inline-block;
}

.dch-header__top-social a,
.dch-footer__social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s;
}

.dch-header__top-social a:hover,
.dch-footer__social a:hover,
.dch-whatsapp-fab:hover {
    background: var(--dch-red);
    color: #ffffff;
}

.dch-header__main {
    padding: var(--dch-header-padding, 14px) 0;
}

.dch-header__main-inner {
    gap: 24px;
}

.dch-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 56px; /* Prevents header from collapsing when no image logo is set */
}

.dch-logo__icon img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.dch-logo__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dch-logo__name {
    color: var(--dch-navy);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dch-logo__tagline {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--dch-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1px;
}

.dch-nav {
    margin-left: auto;
}

.dch-nav__list {
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dch-nav__link,
.dch-nav__list li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dch-text-main);
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}

.dch-nav__link::after,
.dch-nav__list li a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--dch-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.dch-nav__link:hover,
.dch-nav__link.active,
.dch-nav__list li a:hover,
.dch-nav__list li.current-menu-item > a,
.dch-nav__list li.current_page_item > a,
.dch-nav__list li.current_page_parent > a,
.dch-nav__list li.current-menu-ancestor > a,
.dch-nav__list li.current-menu-parent > a {
    color: var(--dch-navy);
}

.dch-nav__link:hover::after,
.dch-nav__link.active::after,
.dch-nav__list li a:hover::after,
.dch-nav__list li.current-menu-item > a::after,
.dch-nav__list li.current_page_item > a::after,
.dch-nav__list li.current_page_parent > a::after,
.dch-nav__list li.current-menu-ancestor > a::after,
.dch-nav__list li.current-menu-parent > a::after {
    transform: scaleX(1);
}

.dch-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    background: transparent !important;
    border: 0;
    padding: 4px;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.dch-menu-toggle:hover,
.dch-menu-toggle:focus,
.dch-menu-toggle:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.dch-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 3px;
    background: var(--dch-navy);
    transition: all 0.3s ease;
}

.dch-menu-toggle:hover span:nth-child(2) {
    width: 70%;
}

.dch-menu-toggle:hover span:last-child {
    width: 50%;
}

/* Open State (X) */
.dch-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7.5px) rotate(45deg);
}

.dch-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.dch-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 100% !important;
}

body.has-dch-header {
    padding-top: 112px;
}

/* Admin Bar Offset */
.admin-bar .dch-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .dch-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .dch-header {
        top: 0;
    }
}

.dch-footer {
    margin-top: 80px;
    background: var(--dch-footer-bg, #111827);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.dch-footer__main {
    padding-top: 60px;
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.dch-footer__col h4 {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dch-red);
    display: inline-block;
}

.dch-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dch-footer__col ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, gap 0.2s;
}

.dch-footer__col ul a::before {
    content: '→';
    font-size: 0.75rem;
    color: var(--dch-red);
    opacity: 0;
    transition: opacity 0.2s;
}

.dch-footer__col ul a:hover {
    color: #ffffff;
    gap: 12px;
}

.dch-footer__col ul a:hover::before {
    opacity: 1;
}

.dch-footer__desc {
    margin: 16px 0 28px;
    line-height: 1.7;
}

.dch-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.dch-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dch-footer__social a:hover {
    background: var(--dch-red);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--dch-red);
}

.dch-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.dch-footer__contact-item i {
    color: var(--dch-red);
    font-size: 0.875rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.dch-footer__contact-item i.fa-phone-alt {
    transform: scaleX(-1);
    display: inline-block;
}

.dch-footer__contact-item a,
.dch-footer__contact-item span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.dch-footer__contact-item a:hover {
    color: #ffffff;
}

.dch-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.dch-footer__bottom-links {
    display: flex;
    gap: 24px;
}

.dch-footer__bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.dch-footer__bottom-links a:hover {
    color: #fff;
}

.dch-whatsapp-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dch-whatsapp-bg, #25d366);
    color: #ffffff;
    font-size: 1.4rem;
    z-index: 1025;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.dch-whatsapp-fab:hover {
    background: #128c7e;
    transform: scale(1.1);
    color: #ffffff;
}

/* ── Back to Top Button ── */
.dch-back-to-top {
    position: fixed;
    right: 28px;
    bottom: 96px; /* Above WhatsApp FAB */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dch-btt-color, var(--dch-navy, #334155));
    color: #ffffff;
    font-size: 1rem;
    z-index: 1024;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s;
    opacity: 0.9;
}

.dch-back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    opacity: 1;
}

@media (max-width: 1024px) {
    .dch-footer__main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body.has-dch-header {
        padding-top: 70px;
    }

    .dch-header__top {
        display: none;
    }

    .dch-header__main {
        padding: 10px 0;
    }

    .dch-menu-toggle {
        display: flex;
    }

    .dch-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 0 20px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 1029;
    }

    .dch-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .dch-nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .dch-nav__list li {
        width: 100%;
    }

    .dch-nav__link,
    .dch-nav__list li a {
        display: block;
        padding: 12px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .dch-nav__link::after,
    .dch-nav__list li a::after {
        display: none;
    }

    .dch-footer__main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 40px;
        padding-bottom: 28px;
    }

    .dch-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================= */
/* GLOBAL PAGE BANNER (Soft Cards Style)         */
/* ============================================= */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 160px 0 100px;
    margin-top: 0 !important;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--dch-navy);
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(51, 65, 85, 0.6) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-banner h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.page-banner p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-banner { padding: 140px 0 70px; }
}

/* ───────────────────────────────────────────────
   Glass Effect (Glassmorphism)
   ─────────────────────────────────────────────── */
.dch-glass-effect {
    -webkit-backdrop-filter: saturate(180%) blur(16px) !important;
    backdrop-filter: saturate(180%) blur(16px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
