/* ESW Communications - Main Stylesheet */

:root {
    --navy: #1a2847;
    --navy-light: #243356;
    --teal: #14b8a6;
    --teal-light: #2dd4bf;
    --teal-lighter: #5eead4;
    --amber: #f5c842;
    --amber-dark: #d49a2a;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--navy);
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navy);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Alternative Header Structure (contact.html style) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navy);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

header .logo h1 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

header .logo h1 span {
    display: block;
    color: var(--teal-light);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header nav {
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

header nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--teal-light);
}

/* Dropdown for header nav structure */
header nav ul li.dropdown {
    position: relative;
}

header nav ul li.dropdown .dropdown-content,
.dropdown .dropdown-content,
.dropdown-content {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: var(--navy) !important;
    min-width: 240px !important;
    padding: 0.5rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

header nav ul li.dropdown:hover .dropdown-content,
.dropdown:hover .dropdown-content {
    display: flex !important;
}

header nav ul li.dropdown .dropdown-content a,
.dropdown .dropdown-content a,
.dropdown-content a {
    display: block !important;
    padding: 0.75rem 1.25rem !important;
    color: var(--gray-400) !important;
    white-space: nowrap !important;
    font-size: 0.9rem !important;
    width: 100% !important;
}

header nav ul li.dropdown .dropdown-content a:hover,
.dropdown .dropdown-content a:hover,
.dropdown-content a:hover {
    background: rgba(94, 234, 212, 0.1) !important;
    color: var(--teal-light) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo svg {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.logo-tagline {
    color: var(--teal-light);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--teal-light);
}

/* Dropdown Menu */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown > a::after {
    content: ' ▾';
    font-size: 0.7em;
}

.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    min-width: 240px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-links .dropdown:hover .dropdown-menu {
    display: flex;
}

.nav-links .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-400);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-links .dropdown-menu a:hover {
    background: rgba(94, 234, 212, 0.1);
    color: var(--teal-light);
}

.nav-cta {
    background: var(--teal);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: background 0.3s !important;
}

.nav-cta:hover {
    background: var(--teal-light) !important;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 90px 5% 30px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--gray-200);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Hero (alternative structure) */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 90px 5% 30px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--gray-200);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.breadcrumb {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--teal-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background: var(--teal);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--teal);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--teal);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--teal);
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Service Cards with teal left border */
.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background-color: #eef2f7 !important;
    padding: 2rem 2rem !important;
    border-radius: 8px !important;
    border-left: 4px solid #14b8a6 !important;
    border-top: 1px solid #dde5ed !important;
    border-right: 1px solid #dde5ed !important;
    border-bottom: 1px solid #dde5ed !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    min-height: 180px;
}

.service-card h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--teal);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
}

.card li {
    color: var(--gray-600);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--navy);
    padding: 60px 5% 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    padding: 80px 5%;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--teal);
}

.cta-section .btn-primary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 1rem 5%;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* Mobile dropdown adjustments */
    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
        min-width: auto;
    }
    
    .nav-links .dropdown:hover .dropdown-menu {
        display: flex;
    }
    
    .nav-links .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Header nav mobile styles */
    .menu-toggle {
        display: block;
    }
    
    header nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 1rem 5%;
        gap: 1rem;
    }
    
    header nav ul.active {
        display: flex;
    }
    
    header nav ul li.dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
        min-width: auto;
        display: none;
    }
    
    header nav ul li.dropdown:hover .dropdown-content {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
