/* MAXWELL BROKER - Global Styles */
:root {
    --bg: #FFFFFF;
    --bg2: #F5F7FA;
    --bg3: #E8F0F8;
    --ink: #1A1A2E;
    --muted: #6B7280;
    --rule: #E5E7EB;
    --accent: #003366;
    --accent2: #0066CC;
    --accent-light: #E8F0F8;
    --cta: #FF6B35;
    --cta-hover: #E85A2A;
    --success: #10B981;
    --warning: #F59E0B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Top Utility Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--accent);
    padding: 0.5rem 0;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 1.5rem;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-bar-link:hover {
    opacity: 0.8;
}

.top-bar-link svg {
    width: 16px;
    height: 16px;
}

.top-bar-login {
    background: var(--cta);
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.top-bar-login:hover {
    background: var(--cta-hover);
    opacity: 1;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,51,102,0.15);
    border-bottom-width: 2px;
}

/* Transparent Navigation for Homepage Hero */
.nav-transparent {
    background: transparent;
    border-bottom: none;
}

.nav-transparent .nav-link,
.nav-transparent .nav-dropdown-toggle {
    color: white;
}

.nav-transparent .nav-link:hover,
.nav-transparent .nav-dropdown-toggle:hover {
    color: var(--cta);
}

.nav-transparent .nav-link::after {
    background: var(--cta);
}

.nav-transparent .logo {
    color: white;
}

.nav-transparent.scrolled {
    background: white;
    border-bottom: 3px solid var(--accent);
}

.nav-transparent.scrolled .nav-link,
.nav-transparent.scrolled .nav-dropdown-toggle {
    color: var(--accent);
}

.nav-transparent.scrolled .nav-link:hover,
.nav-transparent.scrolled .nav-dropdown-toggle:hover {
    color: var(--cta);
}

.nav-transparent.scrolled .logo {
    color: var(--accent);
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon svg {
    width: 36px;
    height: 36px;
}

.logo-icon::before {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--cta);
}

.nav-link.active {
    color: var(--cta);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--cta);
    transition: width 0.3s;
}

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

.nav-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    background: var(--cta);
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

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

.nav-dropdown-toggle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-dropdown-toggle:hover {
    color: var(--cta);
}

.nav-dropdown-toggle.active {
    color: var(--cta);
}

.nav-dropdown-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0,51,102,0.15);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.nav-dropdown-item {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--accent);
    color: white;
}

.nav-dropdown-item.active {
    background: var(--cta);
    color: white;
}

/* Hero Section */
.page-hero {
    padding: 120px 2rem 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: white;
    position: relative;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
}

.page-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--rule);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--accent2);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--accent);
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.card:hover .card-link svg {
    transform: translateX(4px);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Buttons */
.btn-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--cta);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg2);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid var(--rule);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg3);
    border-color: var(--accent2);
}

/* Stats Section */
.stats-section {
    background: var(--accent);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--cta);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
}

.feature-text {
    font-size: 1rem;
    color: var(--ink);
}

.feature-text strong {
    color: var(--accent);
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Contact Form */
.contact-form {
    background: var(--bg2);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--ink);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent2);
}

.form-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-select option {
    background: white;
    color: var(--ink);
    padding: 0.5rem;
}

.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Footer */
.footer {
    background: var(--ink);
    color: white;
    padding: 4rem 2rem 2rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}

.social-link:hover {
    background: var(--accent2);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

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

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg2);
    border-radius: 8px;
}

.process-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.process-title {
    font-size: 0.9rem;
    color: var(--ink);
}

/* Market Partners */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.partner-item {
    padding: 1rem;
    background: var(--bg2);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg2);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.location-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.location-item span {
    font-weight: 600;
    color: var(--ink);
}

.location-icon {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .partner-grid,
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--rule);
        display: block;
        color: var(--ink);
    }

    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .page-hero-title {
        font-size: 2rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Page Content Styles */
.page-content {
    padding: 4rem 2rem;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.content-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.content-text {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.content-list {
    list-style: none;
    margin-bottom: 2rem;
}

.content-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list-icon {
    width: 20px;
    height: 20px;
    color: var(--success);
}

/* Highlight Box */
.highlight-box {
    background: var(--bg3);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box-title {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.data-table th,
.data-table td {
    padding: 1rem;
    border: 1px solid var(--rule);
    text-align: left;
}

.data-table th {
    background: var(--accent);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background: var(--bg2);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 2rem;
    background: var(--bg2);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb-link {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--accent2);
}

.breadcrumb-separator {
    color: var(--muted);
}

.breadcrumb-current {
    color: var(--ink);
}