/* Common CSS for Agence SAGIR Website */

/* ===============================================
   Universal Reset Styles
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===============================================
   Top Bar Styles
   =============================================== */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-size: 14px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-item:hover {
    color: #002B5C;
}

.top-bar-social {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-left: 24px;
    margin-left: 24px;
    border-left: 1px solid #e0e0e0;
}

.top-bar-social-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #002B5C;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.top-bar-social-link:hover {
    background: #002B5C;
    color: white;
    border-color: #002B5C;
    transform: translateY(-2px);
}

.top-bar-social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
}

.top-bar-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 0.9;
}

.top-bar-social-link.facebook {
    background: #1877F2;
    color: white;
    border: none;
}

.top-bar-social-link.facebook:hover {
    background: #1565C0;
    opacity: 0.9;
}

/* ===============================================
   Main Navigation Styles
   =============================================== */
.main-nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #002B5C;
}

.nav-link.active {
    color: #002B5C;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    padding: 8px;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-dropdown-item:hover {
    background: #f8f9fa;
    color: #002B5C;
    transform: translateX(4px);
}

.nav-dropdown-group {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-dropdown-group:last-child {
    border-bottom: none;
}

.nav-dropdown-header {
    display: block;
    padding: 10px 16px;
    color: #002B5C;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.nav-dropdown-header:hover {
    background: #f0f7ff;
}

.nav-dropdown-subitem {
    display: block;
    padding: 8px 16px 8px 32px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.nav-dropdown-subitem:hover {
    background: #f8f9fa;
    color: #002B5C;
    transform: translateX(4px);
}

.nav-cta {
    padding: 12px 28px;
    background: #002B5C;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 16px;
}

.nav-cta:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 43, 92, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* ===============================================
   Common Button Styles
   =============================================== */
.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: #7CB342;
}

.btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #7CB342;
}

/* ===============================================
   Section Header Styles
   =============================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    color: #002B5C;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ===============================================
   Footer Styles
   =============================================== */
.footer {
    background: #f8f9fa;
    padding: 24px 40px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: #666;
    font-size: 14px;
}

.footer-permit {
    font-weight: 500;
    color: #002B5C;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #002B5C;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #002B5C;
    color: white;
    border-color: #002B5C;
    transform: translateY(-3px);
}

.footer-social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
}

.footer-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 0.9;
    transform: translateY(-3px);
}

.footer-social-link.facebook {
    background: #1877F2;
    color: white;
    border: none;
}

.footer-social-link.facebook:hover {
    background: #1565C0;
    opacity: 0.9;
    transform: translateY(-3px);
}

/* ===============================================
   Responsive Mobile Breakpoints
   =============================================== */
@media (max-width: 968px) {
    .top-bar-social {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .top-bar-content {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }
}
