﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Custom CSS for _Layout_PublicHome_v2.cshtml
 * Includes navbar styling and redesigned footer with accessibility support.
 */

/* ========================================
   NAVBAR HEIGHT OVERRIDES
   Corrects the navbar height for public home layout
   ======================================== */
:root {
    /* Navbar dimensions - override from navbar-premium.css */
    --navbar-height: 72px;
    --navbar-height-scrolled: 64px;
    --navbar-height-mobile: 64px;
    
    /* Content offset recalculated automatically via calc() */
    /* --content-offset: calc(var(--navbar-height) + 8px) = 80px */
    /* --content-offset-mobile: calc(var(--navbar-height-mobile) + 8px) = 72px */
}

/* ========================================
   NAVBAR DROPDOWN STYLES
   ======================================== */

/* Remove Bootstrap dropdown chevron/caret from navbar dropdown toggles */
.navbar .nav-item .dropdown-toggle::after {
    display: none !important;
}

/* Alternative approach - if the above doesn't work, target more specifically */
#mainNav .navbar-nav .nav-item .dropdown-toggle::after {
    display: none !important;
}

/* Ensure dropdown functionality is not affected by removing visual indicator */
.navbar .nav-item .dropdown-toggle {
    cursor: pointer;
}

/* Optional: Add subtle hover effect to indicate clickable dropdown items */
.navbar .nav-item .dropdown-toggle:hover {
    opacity: 0.8;
}

/* ========================================
   FOOTER - REDESIGNED 2025
   Premium, accessible, conversion-focused
   ======================================== */

.dng-footer {
    /* Unified premium gradient - single seamless flow */
    background: 
        /* Subtle radial glow at top for depth - warm amber glow */
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 98, 0.15) 0%, transparent 60%),
        /* Main gradient - dark earth browns matching hero sections */
        linear-gradient(180deg, 
            #2d1f14 0%, 
            #3d2b1f 15%,
            #4a3728 40%,
            #3d2b1f 70%,
            #1a1815 100%
        );
    font-family: var(--dng-font-sans, 'Inter', sans-serif);
    color: #ffffff;
    position: relative;
}

/* Subtle mesh/texture overlay for premium feel - warm amber tints */
.dng-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(201, 169, 98, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ----------------------------------------
   TOP CTA BAND
   ---------------------------------------- */

.dng-footer-cta {
    /* No separate background - inherits from parent for seamless flow */
    /* Subtle top highlight for visual separation */
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        transparent 100%
    );
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.dng-footer-cta-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.dng-footer-tagline {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .dng-footer-tagline {
        font-size: 2rem;
    }
}

.dng-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, var(--dng-coral) 0%, var(--dng-coral-dark) 100%);
    color: var(--dng-charcoal);
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 14px rgba(201, 169, 98, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    letter-spacing: 0.02em;
}

.dng-footer-cta-btn:hover,
.dng-footer-cta-btn:focus {
    background: linear-gradient(135deg, var(--dng-coral-light) 0%, var(--dng-coral) 100%);
    color: var(--dng-charcoal);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(201, 169, 98, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.dng-footer-cta-btn:active {
    transform: translateY(-1px);
}

.dng-footer-cta-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.dng-footer-cta-btn svg,
.dng-footer-cta-btn i {
    font-size: 1.125rem;
}

.dng-footer-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}

.dng-footer-trust svg {
    width: 14px;
    height: 14px;
    fill: var(--dng-coral);
    flex-shrink: 0;
}

/* ----------------------------------------
   MAIN NAVIGATION COLUMNS
   ---------------------------------------- */

.dng-footer-nav {
    padding: 3.5rem 1.5rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Subtle separator between CTA and nav - warm amber tint */
.dng-footer-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 169, 98, 0.2) 20%,
        rgba(201, 169, 98, 0.3) 50%,
        rgba(201, 169, 98, 0.2) 80%,
        transparent 100%
    );
}

.dng-footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Desktop: 5 columns */
@media (min-width: 992px) {
    .dng-footer-columns {
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
    }
}

/* Tablet: 2-3 columns */
@media (min-width: 576px) and (max-width: 991.98px) {
    .dng-footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Footer Column */
.dng-footer-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
    .dng-footer-column {
        border-bottom: none;
    }
}

/* Column Header - Desktop */
.dng-footer-column-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dng-coral);
    margin: 0 0 1.25rem 0;
    padding: 0;
    display: none;
    position: relative;
}

@media (min-width: 992px) {
    .dng-footer-column-header {
        display: block;
    }
}

/* Mobile Accordion using details/summary */
.dng-footer-accordion {
    margin: 0;
}

.dng-footer-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.125rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dng-coral);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.dng-footer-accordion summary:hover {
    color: var(--dng-coral-light);
}

.dng-footer-accordion summary::-webkit-details-marker {
    display: none;
}

.dng-footer-accordion summary::after {
    content: '+';
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.dng-footer-accordion[open] summary::after {
    content: 'âˆ’';
    background: rgba(201, 169, 98, 0.15);
    color: var(--dng-coral);
}

.dng-footer-accordion summary:focus-visible {
    outline: 2px solid var(--dng-coral);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (min-width: 992px) {
    /* On desktop, hide the accordion toggle - content shows via open attribute */
    .dng-footer-accordion summary {
        display: none;
    }
}

/* Links List */
.dng-footer-links {
    list-style: none;
    margin: 0;
    padding: 0 0 1.25rem 0;
}

@media (min-width: 992px) {
    .dng-footer-links {
        padding: 0;
    }
}

.dng-footer-links li {
    margin-bottom: 0.75rem;
}

.dng-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.1875rem 0;
    position: relative;
}

.dng-footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--dng-coral);
    transition: width 0.25s ease;
}

.dng-footer-links a:hover,
.dng-footer-links a:focus {
    color: #ffffff;
    text-decoration: none;
}

.dng-footer-links a:hover::after,
.dng-footer-links a:focus::after {
    width: 100%;
}

.dng-footer-links a:focus-visible {
    outline: 2px solid var(--dng-coral);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Contact Column Specifics */
.dng-footer-contact-item {
    margin-bottom: 1.125rem;
}

.dng-footer-contact-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.375rem;
    display: block;
    font-weight: 600;
}

.dng-footer-contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.dng-footer-contact-value a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dng-footer-contact-value a:hover,
.dng-footer-contact-value a:focus {
    color: var(--dng-coral);
}

.dng-footer-hours {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* ----------------------------------------
   BOTTOM BAR
   ---------------------------------------- */

.dng-footer-bottom {
    /* Subtle darker band at bottom */
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.15) 100%
    );
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.dng-footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.08) 80%,
        transparent 100%
    );
}

.dng-footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .dng-footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Legal Links */
.dng-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 992px) {
    .dng-footer-legal {
        justify-content: flex-start;
    }
}

.dng-footer-legal a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.dng-footer-legal a:hover,
.dng-footer-legal a:focus {
    color: rgba(255, 255, 255, 0.9);
}

.dng-footer-legal a:focus-visible {
    outline: 2px solid var(--dng-coral);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Social Links */
.dng-footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dng-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dng-footer-social a:hover,
.dng-footer-social a:focus {
    background-color: rgba(201, 169, 98, 0.15);
    color: var(--dng-coral);
    border-color: rgba(201, 169, 98, 0.3);
    transform: translateY(-2px);
}

.dng-footer-social a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.dng-footer-social svg,
.dng-footer-social i {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* App Badge */
.dng-footer-app-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dng-footer-app-badge img {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.dng-footer-app-badge a:hover img,
.dng-footer-app-badge a:focus img {
    opacity: 0.85;
}

.dng-footer-app-badge a:focus-visible {
    outline: 2px solid var(--dng-coral);
    outline-offset: 4px;
}

/* Copyright */
.dng-footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    order: 3;
}

@media (min-width: 992px) {
    .dng-footer-copyright {
        order: 0;
    }
}

/* ----------------------------------------
   PRINT STYLES
   ---------------------------------------- */

@media print {
    .dng-footer-cta,
    .dng-footer-social,
    .dng-footer-app-badge {
        display: none !important;
    }
    
    .dng-footer {
        background: #ffffff !important;
        color: #000000 !important;
        border-top: 1px solid #cccccc;
    }
    
    .dng-footer-links a,
    .dng-footer-legal a,
    .dng-footer-column-header {
        color: #000000 !important;
    }
    
    .dng-footer-copyright {
        color: #666666 !important;
    }
}

/* ----------------------------------------
   REDUCED MOTION
   ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .dng-footer-cta-btn,
    .dng-footer-social a,
    .dng-footer-links a,
    .dng-footer-legal a {
        transition: none !important;
        transform: none !important;
    }
}
