/* ==========================================
   ECQ GLOBAL - SHARED STYLES
   Common styles for all pages
========================================== */

/* BRAND COLORS & RESET */
:root {
    --teal: #008080;
    --dark-teal: #006666;
    --light-teal: #e3f4f4;
    --text-dark: #222;
    --text-muted: #666;
    --border: #e0e0e0;
    --footer-bg: #3b3a39;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff;
    color: var(--text-dark);
}

/* TOP CONTACT STRIP */
.top-bar {
    width: 100%;
    background: #f8f8f8;
    border-bottom: 1px solid var(--border);
    padding: 6px 5%;
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
}

.top-bar a {
    color: var(--teal);
    text-decoration: none;
    font-weight: bold;
}

/* NAVIGATION BAR */
nav {
    width: 100%;
    background: #fff;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

nav img {
    height: 50px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    height: 100%;
}

.nav-links > a,
.nav-links > .dropdown > a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.5;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-links > .dropdown > a:hover {
    color: var(--teal);
    border-bottom: 3px solid var(--teal);
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    top: 32px;
    left: 0;
    min-width: 180px;
    z-index: 9999;
    padding: 10px 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* NESTED DROPDOWN */
.dropdown-item {
    position: relative;
}

.dropdown-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item > a::after {
    content: "›";
    font-size: 18px;
    margin-left: 10px;
}

.sub-dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    top: 0;
    left: 100%;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dropdown-item:hover .sub-dropdown-menu {
    display: block;
}

.sub-dropdown-menu a {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.sub-dropdown-menu a:hover {
    background: var(--light-teal);
    color: var(--teal);
}

/* SECTIONS */
section {
    padding: 60px 5%;
}

section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    border-left: 6px solid var(--teal);
    padding-left: 14px;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
======================================== */

/* Large Desktop Screens (1440px and above) */
@media (min-width: 1440px) {
    nav {
        padding: 20px 8%;
    }
    
    section {
        padding: 80px 8%;
    }
}

/* Tablet and Small Laptop (768px - 1024px) */
@media (max-width: 1024px) {
    nav {
        padding: 12px 4%;
    }
    
    nav img {
        height: 45px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links > a,
    .nav-links > .dropdown > a {
        font-size: 13px;
    }
    
    section {
        padding: 40px 4%;
    }
    
    section h2 {
        font-size: 28px;
    }
}

/* Mobile Devices (below 768px) */
@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 5px 4%;
        text-align: center;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 4%;
    }
    
    nav img {
        height: 40px;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        gap: 0;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links > a,
    .nav-links > .dropdown > a {
        font-size: 14px;
        padding: 15px 10px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        text-align: left;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        padding: 0;
        border: none;
        background: #f8f8f8;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .sub-dropdown-menu {
        position: static;
        width: 100%;
        margin-left: 15px;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--teal);
        background: #f0f0f0;
    }
    
    .dropdown-item > a::after {
        content: "▼";
        font-size: 12px;
    }
    
    section {
        padding: 30px 4%;
    }
    
    section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* Small Mobile Devices (below 480px) */
@media (max-width: 480px) {
    .top-bar {
        font-size: 11px;
        padding: 4px 3%;
    }
    
    nav {
        padding: 10px 3%;
    }
    
    nav img {
        height: 35px;
    }
    
    .nav-links > a,
    .nav-links > .dropdown > a {
        font-size: 11px;
    }
    
    section {
        padding: 25px 3%;
    }
    
    section h2 {
        font-size: 20px;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    nav {
        position: relative;
    }
}
