/* DESIGN SYSTEM FOR NUMA GROUP */

:root {
    /* Color Palette */
    --bg-primary: #0B4B8A;
    
    --text-pure: #ffffff;
    --text-muted: #b0cce9;
    --text-dim: rgba(255, 255, 255, 0.6);
    
    /* Brand Accent Colors (Strictly shades of blue and white) */
    --color-brand-1: #e0f2fe; /* Numa Insegne: Ice White/Blue */
    --color-brand-1-rgb: 224, 242, 254;
    
    --color-brand-2: #00d2ff; /* Numa Ledwall: Cyan/Sky Blue */
    --color-brand-2-rgb: 0, 210, 255;
    
    --color-brand-3: #82b1ff; /* Numa Neon: Electric Soft Blue */
    --color-brand-3-rgb: 130, 177, 255;
    
    --color-brand-4: #2b7de9; /* Numa Gadget: Bright Blue */
    --color-brand-4-rgb: 43, 125, 233;
    
    --color-brand-5: #ffffff; /* Numa Software: Pure White */
    --color-brand-5-rgb: 255, 255, 255;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0B4B8A;
    color: var(--text-pure);
    font-family: var(--font-body);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden; /* No scrolling for desktop */
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 1440px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5vh 4vw 2.5vh;
}

/* MAIN CONTENT GROUP */
.main-content-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

/* HEADER STYLE */
.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    justify-content: flex-start;
    padding-top: 1.2vh;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    line-height: 0;
}

.main-logo {
    max-height: clamp(55px, 10vh, 95px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* SVG CONNECTIONS */
.connections-container {
    height: 9.5vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    pointer-events: none;
    margin-top: 1.8vh;
    margin-bottom: -1px;
    z-index: 10;
}

.tree-svg {
    width: 100%; /* Matches the card container width for exact alignments */
    height: 100%;
}

.branch-path {
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    opacity: 1;
    vector-effect: non-scaling-stroke;
    transition: var(--transition-smooth);
}

.branch-path.active {
    stroke: #ffffff;
    stroke-width: 2;
    opacity: 1;
    filter: none;
    vector-effect: non-scaling-stroke;
}

#path-brand-1 { --active-color: #ffffff; }
#path-brand-2 { --active-color: #ffffff; }
#path-brand-3 { --active-color: #ffffff; }
#path-brand-4 { --active-color: #ffffff; }
#path-brand-5 { --active-color: #ffffff; }

/* BRANDS SECTION */
.brands-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: auto;
    gap: 0.8vw;
    margin-top: 0;
    margin-bottom: 0;
}

/* Brand Cards Styling - Pure White Background */
.brand-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 3.2vh 1.1vw 2.6vh;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.brand-card.disabled {
    cursor: default;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--x, 0px) var(--y, 0px), rgba(11, 75, 138, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.brand-card:hover .card-glow {
    opacity: 1;
}

.brand-logo {
    max-height: clamp(20px, 3.2vh, 32px);
    max-width: 95%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.8vh;
    display: block;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.brand-desc {
    font-size: clamp(0.75rem, 0.95vw, 0.86rem);
    line-height: 1.5;
    color: #1e293b;
    font-weight: 400;
    text-align: left;
    width: 100%;
    margin-bottom: 1.5vh;
}

.brand-tags {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0;
    margin-bottom: 2.8vh;
}

.tag {
    font-size: clamp(0.55rem, 0.65vw, 0.65rem);
    font-weight: 500;
    color: #0B4B8A;
    background: #f0f7ff;
    border: 1px solid #d0e4ff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    line-height: 1.2;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-card:hover .tag {
    background: #e2f0fe;
    border-color: #b8d9fc;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    align-self: flex-end;
    margin-left: auto;
    font-size: clamp(0.72rem, 0.9vw, 0.84rem);
    font-weight: 600;
    color: #0B4B8A;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.brand-link i {
    font-size: 0.75rem;
}

/* Set individual card accent colors */
#card-insegne {
    --brand-color: #0284c7;
    --brand-color-rgb: 2, 132, 199;
}

#card-ledwall {
    --brand-color: #0099e6;
    --brand-color-rgb: 0, 153, 230;
}

#card-neon {
    --brand-color: #4f46e5;
    --brand-color-rgb: 79, 70, 229;
}

#card-gadget {
    --brand-color: #2563eb;
    --brand-color-rgb: 37, 99, 235;
}

#card-software {
    --brand-color: #0B4B8A;
    --brand-color-rgb: 11, 75, 138;
}

/* Hover States for Cards */
.brand-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* FOOTER BANNER */
.footer-banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 2.2vh;
    margin-bottom: 1.8vh;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent);
}

.footer-tagline-text {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.02em;
    padding: 2.2vh 2vw;
    line-height: 1.6;
    text-transform: none;
}

/* FOOTER STYLE */
.main-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
}

.footer-columns {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 0.5vh;
}

.footer-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 1vw;
}

.footer-col:first-child {
    justify-content: flex-start;
    padding-left: 0;
}

.footer-col:last-child {
    justify-content: flex-end;
    padding-right: 0;
}

.footer-divider {
    width: 1px;
    height: 100px;
    align-self: center;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent);
}

.col-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.col-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 1.2vh, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-pure);
    margin-bottom: 1.2vh;
    text-align: center;
}

.col-content p {
    font-size: clamp(0.72rem, 1.1vh, 0.85rem);
    line-height: 1.5;
    color: var(--text-dim);
    font-weight: 300;
    text-align: center;
}

/* Contacts & Socials lists */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8vh;
    width: 100%;
}

.contact-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8vw;
    font-size: clamp(0.72rem, 1.1vh, 0.85rem);
    color: var(--text-dim);
    font-weight: 300;
    text-align: center;
}

.contact-list li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-list li a:hover {
    color: var(--color-brand-2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.4vw;
    margin-top: 0.8vh;
}

.social-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-pure);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
}

.social-btn:hover {
    color: var(--bg-primary);
    background-color: var(--text-pure);
    border-color: var(--text-pure);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.15);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================== */

/* TABLET (max-width: 1024px) */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }

    .app-container {
        height: auto;
        min-height: 100vh;
        padding: 30px 24px 40px;
    }

    .connections-container {
        display: none;
    }

    .brands-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        width: 100%;
        margin-top: 24px;
    }

    .brand-card:last-child {
        grid-column: span 2;
        max-width: 600px;
        justify-self: center;
        width: 100%;
    }

    .brand-card {
        padding: 24px 20px;
    }

    .brand-logo {
        max-height: 26px;
        margin-bottom: 12px;
        align-self: center;
    }

    .brand-desc {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .brand-tags {
        margin-bottom: 20px;
        gap: 6px;
    }

    .tag {
        font-size: 0.72rem;
        padding: 5px 8px;
    }

    .brand-link {
        font-size: 0.85rem;
    }

    .footer-banner {
        margin-top: 36px;
        margin-bottom: 24px;
    }

    .footer-tagline-text {
        font-size: 0.92rem;
        padding: 18px 12px;
    }

    .footer-columns {
        gap: 20px;
    }

    .footer-col {
        padding: 0 8px;
    }

    .footer-divider {
        height: 80px;
    }

    .col-content h3 {
        font-size: 0.92rem;
    }

    .col-content p,
    .contact-list li {
        font-size: 0.82rem;
    }

    .social-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* SMARTPHONE (max-width: 640px) */
@media (max-width: 640px) {
    .app-container {
        padding: 16px 12px 30px;
    }

    /* Main Content Group with left padding for vertical tree trunk */
    .main-content-group {
        position: relative;
        padding-left: 28px;
        width: 100%;
    }

    .main-header {
        padding-top: 4px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        position: relative;
        width: 100%;
        padding-left: 8px;
    }

    .logo-container {
        justify-content: flex-start;
    }

    .main-logo {
        max-height: 48px;
        height: auto;
    }

    .connections-container {
        display: none;
    }

    /* Main Vertical Tree Trunk Line on the far left */
    .main-content-group::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 26px;
        bottom: 209px;
        width: 2px;
        background: #ffffff;
        z-index: 10;
        display: block;
    }

    /* Top Horizontal Line connecting vertical line to left side of NUMA GROUP logo */
    .main-content-group::after {
        content: '';
        position: absolute;
        left: 10px;
        top: 26px;
        width: 18px;
        height: 2px;
        background: #ffffff;
        z-index: 10;
    }

    /* Brands Section */
    .brands-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
        position: relative;
        width: 100%;
        padding-left: 0;
    }

    .brands-section::before,
    .brands-section::after {
        display: none;
    }

    .brand-card,
    .brand-card:last-child {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        padding: 18px 14px;
        border-radius: 8px;
        position: relative;
        overflow: visible;
    }

    /* Horizontal branch line into card */
    .brand-card::before {
        content: '';
        position: absolute;
        left: -18px;
        top: 34px;
        width: 18px;
        height: 2px;
        background: #ffffff;
        z-index: 10;
        transition: var(--transition-smooth);
    }

    .brand-card::after {
        display: none;
    }

    .brand-logo {
        max-height: 22px;
        margin-bottom: 10px;
        align-self: center;
    }

    .brand-desc {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .brand-tags {
        margin-bottom: 14px;
        gap: 4px;
    }

    .tag {
        font-size: 0.68rem;
        padding: 4px 6px;
    }

    .brand-link {
        font-size: 0.82rem;
    }

    /* Active / Hover glow on touch or mouseover */
    .brand-card:hover::before,
    .brand-card:active::before {
        background: #ffffff;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    }

    .footer-banner {
        margin-top: 28px;
        margin-bottom: 20px;
    }

    .footer-tagline-text {
        font-size: 0.78rem;
        padding: 12px 6px;
        line-height: 1.5;
    }

    .footer-columns {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-divider {
        width: 80%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.12), transparent);
    }

    .footer-col:first-child,
    .footer-col:last-child,
    .footer-col {
        justify-content: center;
        padding: 0;
    }

    .col-content {
        max-width: 100%;
    }

    .col-content h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .col-content p,
    .contact-list li {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .social-links {
        gap: 8px;
        margin-top: 10px;
    }

    .social-btn {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
}
