/*
 * DCM Global — reset, typography, header, footer, shared utilities.
 */

/* ---------- Reset ---------- */

.dcm-site,
.dcm-site *,
.dcm-site *::before,
.dcm-site *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dcm-site {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: #1a1a1a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.dcm-site img {
    display: block;
    max-width: 100%;
}

/* ---------- Site header (non-home) ---------- */

.dcm-site .dcm-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 21px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.dcm-site .dcm-header.scrolled {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.dcm-site .dcm-logo {
    height: auto;
    max-height: 60px;
    max-width: 169px;
    object-fit: contain;
}

/* ---------- Hamburger ---------- */

.dcm-site .dcm-menu-toggle {
    width: 44px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
}

.dcm-site .dcm-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center;
}

.dcm-site .dcm-menu-toggle.active span:nth-child(1) {
    transform: translateY(15.5px) rotate(45deg);
}

.dcm-site .dcm-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.dcm-site .dcm-menu-toggle.active span:nth-child(3) {
    transform: translateY(-15.5px) rotate(-45deg);
}

/* ---------- Overlay ---------- */

.dcm-site .dcm-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.dcm-site .dcm-nav-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ---------- Side panel (non-home) ---------- */

.dcm-site .dcm-nav-panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 500px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 78px 65px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.dcm-site .dcm-nav-panel.open {
    right: 0;
}

.dcm-site .dcm-nav-panel a {
    display: block;
    font-size: 34px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    opacity: 0;
    transform: translateX(30px);
    letter-spacing: 0.5px;
    font-family: 'DM Sans', sans-serif;
}

.dcm-site .dcm-nav-panel.open a {
    opacity: 1;
    transform: translateX(0);
}

.dcm-site .dcm-nav-panel.open a:nth-child(1) { transition-delay: 0.10s; }
.dcm-site .dcm-nav-panel.open a:nth-child(2) { transition-delay: 0.15s; }
.dcm-site .dcm-nav-panel.open a:nth-child(3) { transition-delay: 0.20s; }
.dcm-site .dcm-nav-panel.open a:nth-child(4) { transition-delay: 0.25s; }
.dcm-site .dcm-nav-panel.open a:nth-child(5) { transition-delay: 0.30s; }
.dcm-site .dcm-nav-panel.open a:nth-child(6) { transition-delay: 0.35s; }
.dcm-site .dcm-nav-panel.open a:nth-child(7) { transition-delay: 0.40s; }

.dcm-site .dcm-nav-panel a:hover {
    color: #c0392b;
    padding-left: 14px;
}

/* ---------- Footer (shared) ---------- */

.dcm-site .dcm-footer,
.dcm-site .dcm-home-footer {
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    border-top: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
}

.dcm-site .dcm-footer-label {
    font-size: 14px;
    color: #999;
    font-family: 'DM Sans', sans-serif;
}

.dcm-site .dcm-footer-icons {
    display: flex;
    gap: 12px;
}

.dcm-site .dcm-footer-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dcm-site .dcm-footer-icons a:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.dcm-site .dcm-footer-icons a svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

.dcm-site .dcm-footer-icons a.dcm-yt {
    background: #c0392b;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .dcm-site .dcm-header {
        padding: 16px 24px;
    }

    .dcm-site .dcm-logo {
        max-height: 44px;
        max-width: 120px;
    }

    .dcm-site .dcm-menu-toggle {
        width: 36px;
        height: 28px;
    }

    .dcm-site .dcm-menu-toggle.active span:nth-child(1) {
        transform: translateY(12.5px) rotate(45deg);
    }

    .dcm-site .dcm-menu-toggle.active span:nth-child(3) {
        transform: translateY(-12.5px) rotate(-45deg);
    }

    .dcm-site .dcm-nav-panel {
        width: 100%;
        right: -100%;
        padding: 60px 36px;
    }

    .dcm-site .dcm-nav-panel a {
        font-size: 26px;
        padding: 20px 0;
    }

    .dcm-site .dcm-footer,
    .dcm-site .dcm-home-footer {
        padding: 24px 20px;
        justify-content: center;
    }
}
