/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --canada-red: #DC143C;
    --canada-red-dark: #B71C1C;
    --canada-red-light: #E53935;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --dark-gray: #333333;
    --border-gray: #d1d1d1;
    --link-blue: #284162;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body {
    font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Navigation */
.navbar {
    background-color: var(--canada-red);
    color: var(--white);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--canada-red-dark);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    color: var(--white);
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.2s;
}

.nav-brand-link:hover {
    opacity: 0.9;
}

.nav-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: block;
}

.nav-brand-link:hover .nav-logo {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.nav-brand .tagline {
    font-size: 0.85rem;
    opacity: 0.95;
    letter-spacing: 0;
    font-weight: 300;
    margin-top: 0.15rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--canada-red-dark);
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border-gray);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(40, 65, 98, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(220, 20, 60, 0.1);
    color: var(--canada-red);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button-primary,
.cta-button-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button-primary {
    background: var(--canada-red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.cta-button-primary:hover {
    background: var(--canada-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.cta-button-secondary {
    background: var(--white);
    color: var(--canada-red);
    border: 2px solid var(--canada-red);
}

.cta-button-secondary:hover {
    background: var(--canada-red);
    color: var(--white);
    transform: translateY(-2px);
}

.main-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.main-search-box {
    display: flex;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.main-search-box:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--canada-red);
}

.main-search-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    outline: none;
    font-weight: 300;
}

.main-search-button {
    background: var(--canada-red);
    color: var(--white);
    border: none;
    padding: 0 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-search-button:hover {
    background: var(--canada-red-dark);
    transform: scale(1.02);
}

.main-search-button svg {
    width: 18px;
    height: 18px;
}

.main-search-button span {
    display: block;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(180deg, var(--white) 0%, #fafbfc 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--canada-red);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.formation-header .section-title {
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.feature-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--canada-red);
}

.feature-box:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--canada-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.feature-box h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Info Section */
.info-section {
    padding: 3rem 0 4rem;
    background: var(--light-gray);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-box {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--canada-red);
}

.info-box h3 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.info-link {
    color: var(--canada-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--canada-red-dark);
    text-decoration: underline;
}

/* Company Formation Section */
.company-formation-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--white) 0%, #fafbfc 100%);
    position: relative;
}

.formation-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.7;
}

.formation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-item {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--canada-red);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--canada-red);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.step-content {
    margin-top: 1.5rem;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-link {
    color: var(--canada-red);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.step-link:hover {
    color: var(--canada-red-dark);
    gap: 0.5rem;
}

.formation-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--canada-red);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(220, 20, 60, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--canada-red);
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-card h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--border-gray);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.partner-logo svg {
    width: 100%;
    height: 100%;
}

.partner-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.partner-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Search Results */
.search-results {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.results-header {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: 400;
}

.result-item {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-left: 4px solid var(--canada-red);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-left-color 0.2s;
}

.result-item:hover {
    border-left-color: var(--canada-red-dark);
}

.result-item h3 {
    color: var(--link-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.result-item .company-name {
    font-weight: 400;
    color: var(--link-blue);
}

.result-item .company-industry {
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.result-item .company-employees {
    display: inline-block;
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

.result-item .company-registry-id,
.result-item .company-office-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.result-item .company-registry-id strong,
.result-item .company-office-location strong {
    color: var(--dark-gray);
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--navy-blue);
}

/* Page Content */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem 1rem;
    }
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.page-header h1 {
    color: var(--dark-gray);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    color: var(--dark-gray);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .content-section h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
}

.content-section h3 {
    color: var(--dark-gray);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 400;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-section a {
    color: var(--link-blue);
    text-decoration: underline;
    font-weight: 400;
}

.content-section a:hover {
    text-decoration: none;
}

/* Officers Section */
.officers-list {
    margin-top: 1rem;
}

.officer-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
    line-height: 1.6;
}

.officer-item:last-child {
    border-bottom: none;
}

.officer-item strong {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
}

.officer-country {
    color: var(--gray);
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-left: 4px solid var(--canada-red);
    padding: 1.5rem;
    transition: border-left-color 0.2s;
}

.card:hover {
    border-left-color: var(--canada-red-dark);
}

.card h3 {
    color: var(--link-blue);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .contact-form {
        margin: 1.5rem auto;
        padding: 0;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--canada-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--canada-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: var(--canada-red-dark);
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--canada-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal-links {
    margin-bottom: 1rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.75rem;
}

.footer-legal-links {
    margin-bottom: 1rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.75rem;
}

/* Search Highlight - Removed blue highlight */
mark {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-weight: inherit;
}

/* Search Popup Modal */
.search-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.search-popup.active {
    display: block;
}

.search-popup-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-gray);
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-popup-header {
    background-color: var(--canada-red);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
}

.search-popup-close {
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-popup-close:hover {
    opacity: 0.8;
}

.search-popup-body {
    padding: 2rem;
}

.search-progress-container {
    margin-bottom: 2rem;
}

.search-progress-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 400;
}

.search-progress-label.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.search-progress-bar {
    width: 100%;
    height: 30px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.search-progress-bar-fill {
    height: 100%;
    background-color: var(--canada-red);
    width: 0%;
    transition: width 0.1s linear;
}

.search-popup-results {
    max-height: 500px;
    overflow-y: auto;
}

.search-popup-results .result-item {
    margin-bottom: 1rem;
}

.search-popup-results .no-results {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--canada-red-dark);
        text-decoration: none;
    }
    
    .nav-logo {
        width: 40px;
        height: 40px;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-brand .tagline {
        font-size: 0.75rem;
    }

    .nav-brand-link {
        gap: 0.75rem;
    }

    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 2rem;
    }

    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .company-formation-section {
        padding: 3rem 0;
    }

    .formation-header {
        margin-bottom: 2.5rem;
    }

    .formation-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .step-item {
        padding: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -12px;
        left: 1.5rem;
    }

    .formation-benefits {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-icon {
        width: 56px;
        height: 56px;
    }

    .benefit-icon svg {
        width: 28px;
        height: 28px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .main-search-container {
        padding: 0 1rem;
    }

    .main-search-box {
        flex-direction: column;
        border-radius: 4px;
    }

    .main-search-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border: none;
        border-bottom: 1px solid var(--border-gray);
    }

    .main-search-button {
        padding: 1rem;
        width: 100%;
        border-radius: 0 0 4px 4px;
    }

    .stats-section {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-box {
        padding: 1.5rem 0.75rem;
        min-width: 0;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .features-section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .feature-box h3 {
        font-size: 1.25rem;
    }

    .feature-box p {
        font-size: 0.95rem;
    }

    .info-section {
        padding: 2rem 0 3rem;
    }

    .info-boxes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-box h3 {
        font-size: 1.4rem;
    }

    .partners-section {
        padding: 2.5rem 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .partner-item {
        padding: 1.5rem 1rem;
    }

    .partner-logo {
        width: 100px;
        height: 100px;
    }

    .partner-item h3 {
        font-size: 1.1rem;
    }

    .partner-item p {
        font-size: 0.9rem;
    }

    .footer-legal-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .search-popup-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }

    .search-popup-header {
        padding: 1rem;
    }

    .search-popup-header h2 {
        font-size: 1.25rem;
    }

    .search-popup-body {
        padding: 1rem;
    }

    .search-popup-results {
        max-height: 60vh;
    }

    .result-item {
        padding: 0.875rem;
    }

    .result-item h3 {
        font-size: 1.1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .contact-form {
        padding: 0 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-box {
        padding: 1.25rem 0.5rem;
        min-width: 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .partners-section {
        padding: 2rem 0;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .partner-item {
        padding: 1.25rem 1rem;
    }

    .partner-logo {
        width: 80px;
        height: 80px;
    }

    .feature-box {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .info-box {
        padding: 1.25rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-brand .tagline {
        font-size: 0.7rem;
    }

    .nav-brand-link {
        gap: 0.5rem;
    }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a,
    .main-search-button,
    .submit-button,
    .search-button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

.step-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }

.feature-box {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.15s; }
.feature-box:nth-child(3) { animation-delay: 0.2s; }
.feature-box:nth-child(4) { animation-delay: 0.25s; }
.feature-box:nth-child(5) { animation-delay: 0.3s; }
.feature-box:nth-child(6) { animation-delay: 0.35s; }

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improve text readability */
    p, li {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Better spacing for lists */
    .content-section ul,
    .content-section ol {
        margin-left: 1.5rem;
        padding-right: 1rem;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better button spacing */
    .submit-button {
        width: 100%;
        padding: 1rem;
    }
}

