
/* =========================================================
   DG24 Footer — Icy White / Burgundy / Dusty Rose
   Separate stylesheet; does not replace app.css
========================================================= */


@font-face {
    font-family: "Estedad";
    src: url("/dg24/public/frontend/fonts/Estedad%5Bwght%5D.woff2")
         format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/dg24/public/frontend/fonts/Vazirmatn%5Bwght%5D.woff2")
         format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.dg24-footer {
    --footer-bg: #F7F9FC;
    --footer-surface: #FFFFFF;
    --footer-burgundy: #800020;
    --footer-burgundy-dark: #620019;
    --footer-rose: #E8C9D4;
    --footer-rose-soft: #F8EDF1;
    --footer-text: #292631;
    --footer-muted: #74717D;
    --footer-line: #E9DDE3;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--footer-text);
    background:
        radial-gradient(
            ellipse at 90% 0%,
            rgba(232, 201, 212, 0.30),
            transparent 42%
        ),
        var(--footer-bg);
    border-top: 1px solid var(--footer-line);
    font-family: inherit;
}

.dg24-footer *,
.dg24-mobile-nav * {
    box-sizing: border-box;
}

.dg24-footer .container {
    position: relative;
    z-index: 1;
}

.dg24-footer-main {
    display: grid;
    grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.7fr);
    gap: clamp(28px, 5vw, 68px);
    padding-top: 54px;
    padding-bottom: 38px;
}

/* Brand */

.dg24-footer-brand {
    min-width: 0;
    align-self: start;
}

.dg24-footer-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: var(--footer-burgundy);
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1.5px;
    text-decoration: none;
    transition:
        color 220ms ease,
        transform 220ms ease;
}

.dg24-footer-logo span {
    color: #B45B78;
}

.dg24-footer-logo:hover {
    color: var(--footer-burgundy-dark);
    transform: translateY(-2px);
}

.dg24-footer-tagline {
    margin-top: 9px;
    color: var(--footer-text);
    font-size: 16px;
    font-weight: 800;
}

.dg24-footer-tagline span {
    color: var(--footer-burgundy);
}

.dg24-footer-description {
    max-width: 390px;
    margin: 17px 0 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 2.1;
}

.dg24-footer-description + .dg24-footer-description {
    margin-top: 7px;
}

/* Social placeholders */

.dg24-footer-social {
    margin-top: 25px;
}

.dg24-footer-section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--footer-text);
    font-size: 13px;
    font-weight: 800;
}

.dg24-social-placeholders {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dg24-social-placeholder {
    display: block;
    width: 39px;
    height: 39px;
    border: 1px dashed #D7AEBE;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.75);
}

/* Menus */

.dg24-footer-menus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.dg24-footer-menu {
    min-width: 0;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--footer-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        background-color 220ms ease;
}

.dg24-footer-menu:hover {
    border-color: #DDB8C6;
}

.dg24-footer-menu[open] {
    border-color: #DDB8C6;
    background: var(--footer-surface);
    box-shadow: 0 8px 24px rgba(77, 20, 44, 0.045);
}

.dg24-footer-menu > summary {
    display: flex;
    min-height: 59px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 17px;
    color: var(--footer-text);
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        color 200ms ease,
        background-color 200ms ease;
}

.dg24-footer-menu > summary::-webkit-details-marker {
    display: none;
}

.dg24-footer-menu > summary::marker {
    content: "";
}

.dg24-footer-menu > summary:hover,
.dg24-footer-menu[open] > summary {
    color: var(--footer-burgundy);
    background: var(--footer-rose-soft);
}

.dg24-footer-chevron {
    position: relative;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: #F5E6EC;
    transition:
        transform 240ms ease,
        background-color 240ms ease;
}

.dg24-footer-chevron::before {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-right: 1.8px solid var(--footer-burgundy);
    border-bottom: 1.8px solid var(--footer-burgundy);
    content: "";
    transform: rotate(45deg);
    transition: transform 240ms ease;
}

.dg24-footer-menu[open] .dg24-footer-chevron {
    background: var(--footer-burgundy);
}

.dg24-footer-menu[open] .dg24-footer-chevron::before {
    top: 11px;
    border-color: #FFFFFF;
    transform: rotate(225deg);
}

.dg24-footer-menu-content {
    display: grid;
    gap: 2px;
    padding: 2px 17px 15px;
    border-top: 1px solid #F2E6EB;
    animation: dg24-footer-reveal 240ms ease both;
}

.dg24-footer-menu-content a {
    position: relative;
    display: block;
    padding: 8px 13px 8px 0;
    color: var(--footer-muted);
    font-size: 12.5px;
    line-height: 1.8;
    text-decoration: none;
    transition:
        color 200ms ease,
        padding-right 200ms ease;
}

.dg24-footer-menu-content a::before {
    position: absolute;
    top: 17px;
    right: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--footer-rose);
    content: "";
    transition:
        background-color 200ms ease,
        transform 200ms ease;
}

.dg24-footer-menu-content a:hover {
    padding-right: 18px;
    color: var(--footer-burgundy);
}

.dg24-footer-menu-content a:hover::before {
    background: var(--footer-burgundy);
    transform: scale(1.2);
}

@keyframes dg24-footer-reveal {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust placeholder */

.dg24-footer-trust-row {
    display: flex;
    justify-content: flex-start;
    padding: 22px 0;
    border-top: 1px solid var(--footer-line);
}

.dg24-trust-placeholder {
    display: flex;
    min-width: 220px;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 13px 22px;
    border: 1px dashed #D8B3C1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.dg24-trust-placeholder-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: var(--footer-rose-soft);
    color: var(--footer-burgundy);
    font-size: 18px;
    line-height: 1;
}

.dg24-trust-placeholder-title {
    color: var(--footer-burgundy);
    font-size: 12px;
    font-weight: 800;
}

.dg24-trust-placeholder-caption {
    color: var(--footer-muted);
    font-size: 10px;
}

/* Copyright */

.dg24-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 23px;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-muted);
    font-size: 12px;
}

/* Mobile navigation — retain four existing destinations */

.dg24-mobile-nav {
    --mobile-burgundy: #800020;
    --mobile-rose: #E8C9D4;
    --mobile-bg: #FFFFFF;

    background: var(--mobile-bg);
    border-top: 1px solid #E9DDE3;
}

.dg24-mobile-nav .dg24-mobile-brand-logo {
    color: var(--mobile-burgundy);
}

.dg24-mobile-nav .dg24-mobile-brand-tagline {
    color: #77717B;
}

.dg24-mobile-nav .dg24-mobile-nav-item {
    color: #77717B;
    transition:
        color 200ms ease,
        background-color 200ms ease;
}

.dg24-mobile-nav .dg24-mobile-nav-item:hover,
.dg24-mobile-nav .dg24-mobile-nav-item:focus-visible {
    color: var(--mobile-burgundy);
}

.dg24-mobile-nav .dg24-cart-badge {
    background: var(--mobile-burgundy);
    color: #FFFFFF;
}

/* Tablet */

@media (max-width: 991px) {
    .dg24-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 38px;
    }

    .dg24-footer-description {
        max-width: 620px;
    }

    .dg24-footer-menus {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 575px) {
    .dg24-footer-main {
        gap: 25px;
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .dg24-footer-logo {
        font-size: 32px;
    }

    .dg24-footer-tagline {
        font-size: 14px;
    }

    .dg24-footer-description {
        font-size: 12px;
        line-height: 2;
    }

    .dg24-footer-menus {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dg24-footer-menu > summary {
        min-height: 54px;
        padding: 12px 14px;
        font-size: 13px;
    }

    .dg24-footer-menu-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .dg24-footer-trust-row {
        padding: 18px 0;
    }

    .dg24-trust-placeholder {
        width: 100%;
        min-width: 0;
    }

    .dg24-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        padding-bottom: 22px;
        font-size: 11px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .dg24-footer *,
    .dg24-mobile-nav * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* DG24 — Modern Persian Typography */

.dg24-footer {
    font-family: "Vazirmatn", "Estedad", Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.dg24-footer-logo {
    font-family: "Estedad", "Vazirmatn", sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
}

.dg24-footer-tagline {
    font-family: "Estedad", "Vazirmatn", sans-serif;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.dg24-footer-menu > summary {
    font-family: "Estedad", "Vazirmatn", sans-serif;
    font-weight: 750;
}

.dg24-footer-menu-content a,
.dg24-footer-description,
.dg24-footer-bottom {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}