/* ===============================
   ROOT VARIABLES
================================ */
:root {
    --wine: #8a0000;
    --wine-dark: #5b0000;
    --wine-light: #b10000;

    --white: #ffffff;
    --text: rgba(255, 255, 255, 0.86);
    --muted: rgba(255, 255, 255, 0.66);

    --line: rgba(255, 255, 255, 0.14);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.1);
}

/* ===============================
   FOOTER BASE
================================ */
.sggs-footer {
    position: relative;
    margin-top: 2%;
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.05), transparent 50%),
        linear-gradient(135deg, var(--wine-dark), var(--wine));

    overflow: hidden;
    transform: translateZ(0);
}

/* texture overlay */
.sggs-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.35;
    pointer-events: none;
}

/* ===============================
   CONTAINER GRID
================================ */
.footer-container {
    position: relative;
    z-index: 2;

    max-width: 1400px;
    margin: auto;
    padding: 75px 28px 55px;

    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1.3fr 1.5fr;
    gap: 45px;
}

/* ===============================
   COLUMNS
================================ */
.footer-col {
    padding: 6px 2px;
}

/* headings */
.footer-col h3,
.footer-col h4 {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.footer-col h3 {
    font-size: 1.9rem;
}

.footer-col h4 {
    font-size: 1.08rem;
    position: relative;
    padding-bottom: 12px;
}

/* underline */
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .15));
}

/* ===============================
   LISTS & LINKS
================================ */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 12px;
    color: var(--muted);
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: 0.25s ease;
}

.footer-col ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .85);
    transition: 0.25s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-col ul li a:hover::after {
    width: 100%;
}

/* ===============================
   ICONS
================================ */
.footer-col i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* contact layout */
.footer-col.contact ul li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--white);
}

.footer-col.contact ul li i {
    margin-top: 3px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ===============================
   SOCIAL ICONS
================================ */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    text-decoration: none;
}

.footer-social a i {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: grid;
    place-items: center;

    background: rgba(255, 255, 255, 0.96);
    color: var(--wine);
    font-size: 1.15rem;

    transition: 0.25s ease;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.footer-social a i:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

/* ===============================
   FOOTER BOTTOM
================================ */
.footer-bottom {
    position: relative;
    z-index: 2;

    text-align: center;
    padding: 18px 12px;

    background: rgba(0, 0, 0, 0.30);
    border-top: 1px solid rgba(255, 255, 255, 0.14);

    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ===============================
   RESPONSIVE
================================ */

/* laptops / tablets */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .footer-col:first-child {
        grid-column: span 3;
    }
}

/* tablets & mobiles */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 55px 18px 40px;
        gap: 28px;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col ul li {
        font-size: 0.92rem;
    }

    .footer-col h4::after {
        width: 45px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-social a i {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .footer-bottom {
        font-size: 0.82rem;
    }
}

/* small phones */
@media (max-width: 480px) {
    .footer-container {
        padding: 42px 14px 32px;
        gap: 22px;
    }

    .footer-col ul li {
        font-size: 0.88rem;
    }

    .footer-col h4::after {
        width: 38px;
        height: 2px;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social a i {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

/* extra small */
@media (max-width: 360px) {
    .footer-col h4 {
        font-size: 0.95rem;
    }

    .footer-col ul li {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }
}


/* ===============================
   DROPDOWN MENU STYLES
================================ */

.footer-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    margin-left: 5px;
}

.footer-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu styling */
.footer-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
    margin-bottom: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-dropdown.active .footer-submenu {
    max-height: 300px;
    opacity: 1;
    padding: 8px 0;
    margin-bottom: 12px;
}

.footer-submenu li {
    margin-bottom: 0 !important;
}

.footer-submenu li a {
    padding: 8px 16px 8px 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-submenu li a i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.footer-submenu li a::after {
    display: none;
}

/* Mobile optimization for dropdowns */
@media (max-width: 768px) {
    .footer-submenu {
        background: rgba(0, 0, 0, 0.3);
        margin-left: 20px;
    }
    
    .footer-submenu li a {
        padding: 8px 16px 8px 28px;
    }
}

/* Desktop hover alternative (optional) */
@media (min-width: 769px) {
    .footer-dropdown:hover .footer-submenu {
        max-height: 300px;
        opacity: 1;
        padding: 8px 0;
        margin-bottom: 12px;
    }
    
    .footer-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Optional - show submenu as floating dropdown on desktop */
    .footer-submenu {
        position: absolute;
        left: 0;
        top: 100%;
        min-width: 240px;
        z-index: 100;
        background: rgba(74, 0, 0, 0.95);
        backdrop-filter: blur(16px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }
}

#footer{color: white !important;}


/* ===============================
   RESPONSIVE
================================ */

/* laptops / tablets — NO CHANGE */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .footer-col:first-child {
        grid-column: span 3;
    }
}

/* tablets & mobiles */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 50px 20px 36px;
        gap: 26px;
    }

    /* reset the 3-col span — not needed in single-column layout */
    .footer-col:first-child {
        grid-column: span 1;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .footer-col ul li {
        font-size: 0.92rem;
        margin-bottom: 10px;
    }

    .footer-col h4::after {
        width: 40px;
    }

    .footer-social {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
    }

    .footer-social a i {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .footer-bottom {
        font-size: 0.84rem;
        padding: 14px 16px;
    }

    /* ── DROPDOWN: force inline on mobile, no absolute flyout ── */
    .footer-submenu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        min-width: 0 !important;
        width: 100%;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: none;
        border-radius: 8px;
        margin-left: 0;
        margin-top: 6px;
    }

    .footer-submenu li a {
        padding: 8px 14px 8px 24px;
        font-size: 0.86rem;
    }

    /* disable hover-open on touch devices */
    .footer-dropdown:hover .footer-submenu {
        max-height: 0;
        opacity: 0;
        padding: 0;
        margin-bottom: 0;
    }

    .footer-dropdown:hover .dropdown-arrow {
        transform: none;
    }

    /* only active class opens it on mobile */
    .footer-dropdown.active .footer-submenu {
        max-height: 300px;
        opacity: 1;
        padding: 8px 0;
        margin-bottom: 10px;
    }

    .footer-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* small phones */
@media (max-width: 480px) {
    .footer-container {
        padding: 38px 14px 28px;
        gap: 20px;
    }

    .footer-col ul li {
        font-size: 0.88rem;
    }

    .footer-col h4::after {
        width: 34px;
        height: 2px;
    }

    .footer-social {
        gap: 8px;
    }

    .footer-social a i {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        font-size: 1rem;
    }
}

/* extra small */
@media (max-width: 360px) {
    .footer-container {
        padding: 30px 12px 24px;
    }

    .footer-col h4 {
        font-size: 0.95rem;
    }

    .footer-col ul li {
        font-size: 0.84rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }
}