/* ==========================================================================
   LINCOSCI GLOBAL DESIGN SYSTEM
   ========================================================================== */

:root {
    --primary-color: #002F6C;    /* Deep Italian Azzurri Blue */
    --secondary-color: #FFD166;  /* Warm Yellow for Key Text & Accents */
    --dark-neutral: #001F47;     /* Extra Dark Blue for specific text */
    --light-neutral: #002554;    /* Core Corporate Blue */
    --white: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.15);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--white);
    background-color: var(--primary-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: #E2E8F0;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Buttons & Interactive Elements */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--secondary-color);
    color: var(--dark-neutral);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #E6BC5A;
    transform: translateY(-1px);
}

/* ==========================================================================
   HIGH-CONTRAST HEADER & NAVIGATION SYSTEM
   ========================================================================== */

header {
    background-color: var(--secondary-color); /* Signature warm brand yellow background */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px; /* Tighter gap to cleanly fit solid button items */
    margin: 0;
    padding: 0;
    position: relative;
    align-items: center;
}

/* ALL MENU ITEMS: Styled as crisp blue buttons by default */
.nav-menu a, 
.nav-menu .dropdown-trigger {
    text-decoration: none;
    color: var(--white) !important;
    background-color: var(--light-neutral) !important; /* Solid blue background */
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease-in-out;
    display: inline-block;
    cursor: pointer;
    border: none;
}

/* HOVER EFFECT FOR ALL ITEMS (Main items & sub items): Flips completely to yellow background with blue text */
.nav-menu a:hover,
.dropdown-parent:hover > .dropdown-trigger,
.submenu-parent:hover > .submenu-trigger {
    color: var(--light-neutral) !important; /* Blue text */
    background-color: var(--secondary-color) !important; /* Warm yellow background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   MULTI-LEVEL DROPDOWN MECHANICS
   -------------------------------------------------------------------------- */

.dropdown-parent, .submenu-parent {
    position: relative;
}

/* Level 1 Dropdown Box */
.dropdown-menu-level1 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-neutral);
    width: 320px;
    list-style: none;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    margin-top: 0px;
    gap: 8px;
    flex-direction: column;
}

.dropdown-parent::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

/* Level 2 Dropdown Box (Flies out to the right side) */
.dropdown-menu-level2 {
    display: none;
    position: absolute;
    top: 0px;
    left: 100%;
    background-color: #001A3D; /* Deeper color contrast break */
    width: 320px;
    list-style: none;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    margin-left: 0px;
    gap: 8px;
    flex-direction: column;
}

/* Invisible bridge padding so the mouse can slide smoothly to level 2 */
.submenu-parent::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 15px;
    height: 100%;
}

/* Display loops upon hover actions */
.dropdown-parent:hover .dropdown-menu-level1,
.submenu-parent:hover .dropdown-menu-level2 {
    display: flex;
}

/* Make dropdown links behave like standalone blocks inside their layouts */
.dropdown-menu-level1 a,
.dropdown-menu-level2 a {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   HEADER ACTIONS (LinkedIn & CTA Button Alignment)
   -------------------------------------------------------------------------- */

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Massive Deep Blue LinkedIn Icon */
.linkedin-header-icon {
    color: var(--light-neutral) !important;
    font-size: 32px; /* Upscaled to be perfectly prominent */
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.linkedin-header-icon:hover {
    color: var(--white) !important; /* Turns white on hover for clean interactive pop */
    transform: scale(1.15);
}

/* Main Request Briefing Button Block */
.header-briefing-btn {
    background-color: var(--light-neutral) !important;
    color: var(--white) !important;
    text-decoration: none;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
}

.header-briefing-btn:hover {
    background-color: #113a6b !important;
    transform: translateY(-1px);
}

.header-briefing-btn:active {
    transform: translateY(1px);
}

/* ==========================================================================
   PAGE COMPONENTS & GRID LAYOUTS
   ========================================================================== */

/* Three columns layout mapping layout for Who We Serve squares */
.serve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.serve-card {
    background-color: var(--light-neutral);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.serve-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--secondary-color);
}

/* Grid System for Inner Features */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background: var(--light-neutral);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Footer styling */
footer {
    background-color: #001A3D;
    color: #94A3B8;
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

footer h3 {
    color: var(--white);
}

footer a {
    color: #CBD5E1;
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   MEDIA QUERY RESPONSIVENESS
   ========================================================================== */

@media (max-width: 992px) {
    .serve-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .section {
        padding: 50px 0;
    }
}