/* ================================
   SHARED COMPONENTS - HEADER, FOOTER, NAVIGATION
   ================================ */

/* ================================
   HEADER / NAVIGATION
   ================================ */
.header {
    background-color: var(--primary-header-bg);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(204, 204, 204, 0.1);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.navigation {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-left: auto;
    margin-right: 40px;
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-brand-accent);
}

.nav-link.active {
    color: var(--primary-brand-accent);
}

.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: var(--transition-normal);
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
    padding-top: var(--header-height);
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001; /* Higher z-index for proper stacking */
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-menu-dropdown {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: rgba(47, 57, 77, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border-bottom: 1px solid rgba(204, 204, 204, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 998;
    padding: 30px 51px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - var(--header-height));
}

.mobile-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.mobile-nav-link {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.mobile-nav-link:hover {
    color: var(--primary-brand-accent);
    padding-left: 8px;
}

.mobile-nav-link.active {
    color: var(--primary-brand-accent);
}

.mobile-social-icons {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.mobile-social-link:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(133, 204, 255, 0.2);
}

.mobile-social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Show mobile menu when active */
.mobile-menu-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   FOOTER STYLES
   ================================ */
.footer {
    background-color: #2F394D;
    padding: 40px 0;
    color: #FFFFFF;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    margin: 0;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-social-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ================================
   NAVIGATION ENHANCEMENTS
   ================================ */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-brand-accent);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced focus styles */
.cta-button:focus,
.cta-btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary-brand-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================
   EMAIL VALIDATION & NOTIFICATIONS
   ================================ */
.email-input.error {
    border: 2px solid #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.email-error {
    color: #FF6B6B;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.email-error.show {
    display: block;
}

.success-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.success-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* ================================
   RESPONSIVE DESIGN FOR SHARED COMPONENTS
   ================================ 
   Note: Mobile-specific responsive styles moved to responsive.css 
   for better organization and specificity control
   ================================ */
