/* ============================================
   Business Hub Platform - Shared Stylesheet
   ============================================ */

:root {
    --primary: #1a365d;        /* Deep Navy */
    --accent: #2b6cb0;          /* Professional Blue */
    --success: #48bb78;         /* Growth Green */
    --live: #e53e3e;            /* Live/Active Red */
    --enterprise: #805ad5;      /* Enterprise Purple */
    --partner: #38a169;         /* Partner Green */
    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --light: #e6f2ff;           /* Light Sky Blue */
    --border: #b3d9ff;          /* Light Sky Blue Border */
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* ============================================
   Base Styles
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #e6f2ff, #f0f8ff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Navigation
   ============================================ */

nav {
    background: #f0f8ff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    border-bottom: 1px solid #d0e8ff;
}

nav .nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    padding: 5px 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

nav ul.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

nav ul.mobile-menu.active {
    display: flex;
}

nav a.active-page {
    color: var(--accent);
    font-weight: bold;
    position: relative;
}

nav a.active-page::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: fit-content;
}

.logo img {
    height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

nav .logo img,
nav a.logo img {
    height: 60px !important;
    max-width: 200px !important;
    width: auto !important;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent);
}

nav .btn-profile {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}

nav .btn-profile:hover {
    color: var(--accent);
}

nav .btn-primary-link {
    color: var(--text);
    font-weight: 500;
}

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

nav .btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s;
}

nav .btn-profile:hover {
    background: var(--light);
}

nav .btn-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}

nav .btn-profile .nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    display: none;
    margin: 0;
    flex-shrink: 0;
}

nav .btn-profile .nav-avatar.show {
    display: block !important;
}

nav .btn-profile .nav-avatar-text {
    display: inline-block;
    white-space: nowrap;
}

nav .btn-profile .nav-avatar-text.hide {
    display: none !important;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

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

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #38a169;
    color: var(--white);
}

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

.btn-white:hover {
    background: var(--light);
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: #f5fbff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #d0e8ff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Forms
   ============================================ */

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

/* Accessibility improvements */
a:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.input-group {
    margin-bottom: 20px;
}

/* ============================================
   Layout
   ============================================ */

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

.section {
    padding: 80px 10%;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.9)),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 10%;
    text-align: center;
}

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

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: #1a202c;
    color: var(--white);
    padding: 40px 5%;
    margin-top: auto;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

footer h3,
footer h4 {
    color: var(--white);
    margin-bottom: 15px;
}

footer h3 {
    font-size: 1.2rem;
}

footer h4 {
    font-size: 1rem;
}

footer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

footer ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: var(--accent);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

footer .footer-bottom p {
    margin: 0;
    color: var(--text-muted);
}

/* Footer social icons – prominent, readable on dark background */
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.footer-social a {
    display: inline-flex;
    color: #a0aec0;
    transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover {
    color: #fff;
    transform: scale(1.15);
}
.footer-social svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    footer .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 5%;
    }
    
    footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
}

/* ============================================
   Badges & Tags
   ============================================ */

.badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
}

.badge-primary {
    background: #ebf8ff;
    color: var(--accent);
}

.badge-success {
    background: #f0fff4;
    color: var(--success);
}

.badge-enterprise {
    background: #faf5ff;
    color: var(--enterprise);
}

.badge-partner {
    background: #f0fff4;
    color: var(--partner);
}

.badge-live {
    background: var(--live);
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 5%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

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

.breadcrumbs span {
    color: var(--text-light);
    margin: 0 8px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Icons */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: nowrap;
    }

    nav .nav-toggle {
        display: block;
    }

    nav ul:not(.mobile-menu) {
        display: none;
    }

    nav ul.mobile-menu {
        display: none;
    }

    nav ul.mobile-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 20px;
    }

    .section {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

