/**
 * DS Universal WordPress Platform
 * Header foundation - Version 0.6.1
 */

:root {
    --ds-content-width: 1200px;
    --ds-spacing: 1.5rem;
    --ds-text: #172033;
    --ds-bg: #ffffff;
    --ds-border: #d9dee8;
    --ds-header-height: 82px;
    --ds-header-bg: rgba(255, 255, 255, 0.98);
    --ds-header-text: #172033;
    --ds-header-shadow: 0 6px 24px rgba(23, 32, 51, 0.08);
    --ds-button-bg: #172033;
    --ds-button-text: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ds-text);
    background: var(--ds-bg);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.ds-container {
    width: min(100% - 2rem, var(--ds-content-width));
    margin-inline: auto;
}

.ds-site-header {
    position: relative;
    z-index: 1000;
    background: var(--ds-header-bg);
    color: var(--ds-header-text);
    border-bottom: 1px solid var(--ds-border);
}

.ds-header-sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--ds-header-shadow);
}

.admin-bar .ds-header-sticky {
    top: 32px;
}

.ds-header-transparent {
    position: absolute;
    top: 0;
    width: 100%;
    background: var(--ds-header-bg);
    border-bottom-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
    color: var(--ds-header-text);
}

.admin-bar .ds-header-transparent {
    top: 32px;
}

.ds-header-inner {
    min-height: var(--ds-header-height);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ds-branding {
    flex: 0 0 auto;
}

.ds-branding .custom-logo {
    display: block;
    max-height: 64px;
    width: auto;
}

.ds-site-title {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}

.ds-header-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ds-primary-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ds-nav-spacing, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-primary-nav a {
    color: var(--ds-header-text);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: var(--ds-nav-font-size, 16px);
    font-weight: var(--ds-nav-font-weight, 500);
}

.ds-primary-nav a:hover,
.ds-primary-nav a:focus {
    color: var(--ds-header-hover);
}

.ds-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    background: var(--ds-button-bg);
    color: var(--ds-button-text);
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.ds-header-transparent .ds-header-cta {
    background: var(--ds-button-bg);
    color: var(--ds-button-text);
}

.ds-menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    padding: 0.55rem 0.8rem;
    font: inherit;
}

.ds-hero-slider {
    position: relative;
    z-index: 1;
}

.ds-content {
    padding-block: 2.5rem;
}

.ds-entry + .ds-entry {
    margin-top: 2.5rem;
}

.ds-site-footer {
    border-top: 1px solid var(--ds-border);
    margin-top: 3rem;
}

.ds-site-footer .ds-container {
    padding-block: 2rem;
}

.ds-site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 782px) {
    .admin-bar .ds-header-sticky,
    .admin-bar .ds-header-transparent {
        top: 46px;
    }
}

@media (max-width: 900px) {
    .ds-header-inner {
        flex-wrap: wrap;
        min-height: 72px;
        padding-block: 0.75rem;
    }

    .ds-menu-toggle {
        display: inline-flex;
    }

    .ds-header-navigation {
        display: none;
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        padding-bottom: 0.75rem;
        align-items: stretch;
        flex-direction: column;
    }

    .ds-header-navigation.is-open {
        display: flex;
    }

    .ds-primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .ds-primary-nav li {
        border-top: 1px solid var(--ds-border);
    }

    .ds-primary-nav a {
        display: block;
        padding: 0.8rem 0;
    }

    .ds-header-transparent .ds-primary-nav li {
        border-top-color: rgba(255, 255, 255, 0.25);
    }

    .ds-header-cta {
        align-self: flex-start;
    }
}


/* Branding */
.ds-site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ds-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-height: 64px;
}

.ds-logo-mobile {
    display: none;
}

.ds-site-title-text {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ds-branding:has(.ds-logo-mobile) .ds-logo-primary,
    .ds-branding:has(.ds-logo-mobile) .ds-logo-transparent,
    .ds-branding:has(.ds-logo-mobile) .ds-site-title-text {
        display: none;
    }

    .ds-logo-mobile {
        display: block;
    }
}


/* Page Headers */
.ds-page-header {
    position: relative;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.ds-page-header__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ds-page-header__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: 2rem;
}

.ds-page-header__title {
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.ds-breadcrumbs {
    margin-bottom: .75rem;
    font-size: .9rem;
}

.ds-breadcrumbs a {
    color: inherit;
}
