/* 
   N16STUDIO - Modular Footer Stylesheet
   Centralizes styles for the main website's premium footer and cookie consent banner.
   Located under /web/css/ to avoid browser adblocker block lists.
*/

:root {
    --brand-blue: #224bff;
    --brand-dark: #060058;
    --primary-color: #224bff;
    --secondary-color: #020024;
    --bg-dark: #020024;
    --bg-light: #ffffff;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Syne', sans-serif;

    /* Semantic Gray Palette (Blueish grays) */
    --gray-25: hsl(229, 25%, 99%);
    --gray-50: hsl(229, 20%, 97%);
    --gray-100: hsl(229, 15%, 92%);
    --gray-200: hsl(229, 12%, 85%);
    --gray-300: hsl(229, 10%, 75%);
    --gray-400: hsl(229, 8%, 65%);
    --gray-500: hsl(229, 6%, 55%);
    --gray-600: hsl(229, 6%, 45%);
    --gray-700: hsl(229, 8%, 35%);
    --gray-800: hsl(229, 10%, 25%);
    --gray-900: hsl(229, 12%, 15%);

    /* Semantic Texts & Shadows */
    --text-primary: var(--bg-light);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-500);
    --border-light: hsla(229, 15%, 95%, 0.1);
    --overlay-light: hsla(229, 15%, 95%, 0.05);

    /* Micro-Gradients System for Buttons */
    --btn-gradient: linear-gradient(135deg, #224bff 0%, #112cbc 50%, #5078fa 100%);
    --btn-gradient-hover: linear-gradient(135deg, #335cff 0%, #224bff 50%, #112cbc 100%);
    --btn-glow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(34, 75, 255, 0.3);

    /* Border Radius Scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 100px;
}

/* ==========================================================================
   GRID & UTILITY CLASSES (Self-contained Bootstrap layout simulation)
   ========================================================================== */
/* Make html and body scrollable horizontally hidden to prevent scrollbars with 100vw breakout elements */
html, body {
    overflow-x: hidden !important;
}

.c-footer {
    background: linear-gradient(135deg, #060058 0%, #0012b4 100%);
    border-top: var(--border-light);
    padding: 100px 0 40px 0;
    color: #ffffff !important;
    font-family: var(--font-body), sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;

    /* Break out of any parent container to span 100% of viewport width */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

.c-footer .container-g {
    width: min(90%, 1400px);
    margin: 0 auto;
}

.c-footer .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.c-footer .footer-column {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 2.5rem;
    box-sizing: border-box;
    width: 100%;
}

.c-footer .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsive Grid columns mapping Bootstrap columns */
@media (min-width: 768px) {
    .c-footer .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .c-footer .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
        margin-bottom: 0;
    }

    .c-footer .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
        margin-bottom: 0;
    }
}

/* Text and Typography utility overrides */
.c-footer h6 {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.c-footer p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary) !important;
}

.c-footer .text-uppercase {
    text-transform: uppercase;
}

.c-footer .fw-bold {
    font-weight: 700;
}

.c-footer .mb-4 {
    margin-bottom: 1.5rem !important;
}

.c-footer .mb-3 {
    margin-bottom: 1rem !important;
}

.c-footer .mt-3 {
    margin-top: 1rem !important;
}

.c-footer .opacity-50 {
    opacity: 0.5;
}

.c-footer .opacity-75 {
    opacity: 0.75;
}

.c-footer .text-center {
    text-align: center !important;
}

.c-footer .text-white {
    color: #ffffff !important;
}

.c-footer .text-decoration-underline {
    text-decoration: underline !important;
}

@media (min-width: 992px) {
    .c-footer .text-lg-start {
        text-align: left !important;
    }
}

/* ==========================================================================
   FOOTER ELEMENTS STYLING
   ========================================================================== */
footer.c-footer .footer-column h6 {
    color: #ffffff !important;
    position: relative;
    padding-bottom: 15px;
}

footer.c-footer .footer-column h6::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #224bff !important;
}

footer.c-footer .footer-column .no-after::after {
    display: none;
}

footer.c-footer .footer-column p,
footer.c-footer .footer-column p a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

footer.c-footer .footer-column p a:hover {
    color: #ffffff !important;
    padding-left: 5px !important;
}

/* Social Links styling */
.footer-social-links {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.social-link-svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: var(--border-light) !important;
    border-radius: var(--radius-full) !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.social-link-svg:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(34, 75, 255, 0.3) !important;
    background: var(--brand-blue) !important;
}

.social-link-svg svg {
    width: 20px;
    height: 20px;
}

/* Footer CTA box */
.footer-cta {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-sizing: border-box;
}

footer.c-footer .footer-cta-btn {
    background: var(--btn-gradient) !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: inline-block !important;
    margin-top: 15px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    box-shadow: var(--btn-glow) !important;
    font-family: var(--font-accent), sans-serif;
    cursor: pointer;
}

footer.c-footer .footer-cta-btn:hover {
    background: var(--btn-gradient-hover) !important;
    color: #ffffff !important;
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(34, 75, 255, 0.4), var(--btn-glow) !important;
}

/* Bottom Footer Row */
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
    margin-top: 50px;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted) !important;
}

@media (max-width: 767px) {
    .footer-bottom {
        text-align: center;
    }

    .footer-bottom div:last-child {
        margin-top: 10px;
    }
}

/* ==========================================================================
   COOKIE CONSENT STYLING (From cookie-consent.css)
   ========================================================================== */
.cookie-consent-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-card {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
    box-sizing: border-box;
}

.cookie-consent-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
}

.cookie-consent-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-consent-content p a {
    color: #fff !important;
    text-decoration: underline !important;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-accept {
    background: #fff;
    color: #000;
}

.cookie-btn-accept:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: #fff;
}

/* Layer 2: Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-settings-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    color: #fff;
    box-sizing: border-box;
}

.cookie-settings-header {
    margin-bottom: 24px;
}

.cookie-settings-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.cookie-settings-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.cookie-category-info h5 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 4px;
    font-weight: 600;
}

.cookie-category-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2ecc71;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

input:disabled+.slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.cookie-settings-actions .cookie-btn-reject {
    margin-right: 10px;
}

@media (max-width: 576px) {
    .cookie-consent-overlay {
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0;
    }

    .cookie-consent-card {
        border-radius: 20px 20px 0 0;
        border-bottom: none;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Revocation Trigger */
.cookie-revocation-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cookie-revocation-trigger i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cookie-revocation-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-revocation-trigger:hover i {
    transform: scale(1.2);
}

@media (max-width: 991.98px) {
    .cookie-revocation-trigger {
        bottom: 80px;
        left: 15px;
    }
}