/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html, body {
    height: 100%;
}

body {
    font-family: 'Instrument Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Instrument Sans', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-menu a {
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #6b46c1;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: #1a1a1a;
}

/* Page Layout */
#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page {
    flex: 1;
}

/* Page Title Section */
.page-title-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: left;
    max-width: 1280px;
    margin: 0 auto;
}

.page-title-section h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* About Intro */
.about-intro {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.about-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.about-intro p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 1.2rem 0;
    max-width: 600px;
    letter-spacing: 0.2px;
}

/* About Intro with Images */
.about-intro-with-images {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.about-text p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 1.2rem 0;
    letter-spacing: 0.2px;
}

.image-grid-vertical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.image-grid-vertical img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Image Section */
.image-section {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.image-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.full-width-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 2rem;
}

/* Services Section */
.services-section {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.services-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.services-section > p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 2rem 0;
    letter-spacing: 0.2px;
}

.services-highlight {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.services-highlight h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.services-highlight ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-highlight li {
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.services-highlight li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 3rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.contact-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.contact-section p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.contact-section a {
    color: #1a1a1a;
    text-decoration: none;
}

.contact-section a:hover {
    color: #6b46c1;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFD700;
    color: #000000;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

.cta-button:hover {
    background-color: #FFC700;
    color: #000000;
}

/* Footer */
.footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.footer-contact a {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #6b46c1;
}

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

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

.footer-links a {
    font-size: 14px;
    color: #666666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #6b46c1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

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

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

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

    .page-title-section {
        padding: 2rem 1rem;
    }

    .page-title-section h1 {
        font-size: 32px;
    }

    .container {
        padding: 0 1rem;
    }

    .about-intro,
    .image-section,
    .services-section,
    .contact-section {
        padding: 2rem 1rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-highlight {
        padding: 1.5rem;
    }

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

/* Sourcing Services Page Styles */
.sourcing-intro {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.intro-text p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 1.2rem 0;
    letter-spacing: 0.2px;
}

.intro-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.services-content {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.services-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.services-content > p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 2rem 0;
    letter-spacing: 0.2px;
}

.services-list {
    margin-top: 2rem;
}

.service-item {
    margin-bottom: 2rem;
}

.service-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
}

.service-item p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0;
    letter-spacing: 0.2px;
}

.process-section {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.process-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.process-section > p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 2rem 0;
    letter-spacing: 0.2px;
}

.process-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.process-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}

.process-table th {
    background-color: #f9f9f9;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.process-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.process-table tr:last-child td {
    border-bottom: none;
}

.why-choose-section {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.why-choose-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

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

.reason-item {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.reason-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
}

.reason-item p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* CRN Page Styles */
.crn-main {
    flex: 1;
}

.crn-hero-image {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.crn-hero-image-crop {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 4.5;
    border-radius: 4px;
}

.crn-hero-image-crop .section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: 0;
}

.section-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin: 2rem 0;
}

.crn-what-is {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.crn-what-is h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.crn-definition-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0;
}

.crn-definition-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.crn-definition-text p {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
    text-align: center;
}

.crn-definition-image {
    width: 38%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.crn-what-is p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 1rem 0;
    letter-spacing: 0.2px;
}

.province-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.province-list li {
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.province-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

.crn-categories {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.crn-categories h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
}

.categories-table {
    overflow-x: auto;
}

.categories-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}

.categories-table th {
    background-color: #f9f9f9;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.categories-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666666;
}

.categories-table tr:last-child td {
    border-bottom: none;
}

.crn-why-choose {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.crn-why-choose h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
}

.crn-why-choose h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
}

.crn-why-choose p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 1rem 0;
    letter-spacing: 0.2px;
}

.standards-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.standards-list li {
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.standards-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

.crn-diagram {
    max-width: 75% !important;
    display: block;
    margin: 2rem auto;
}

/* FAQ Page Styles */
.faq-main {
    flex: 1;
}

.faq-content {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.faq-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 3rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: none;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    transition: background-color 0.2s ease;
    text-align: left;
    letter-spacing: 0.2px;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-toggle {
    font-size: 24px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.expanded .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    animation: slideDown 0.3s ease;
    display: none;
}

.faq-item.expanded .faq-answer {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.faq-answer p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 1rem 0;
    letter-spacing: 0.2px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #666666;
    font-size: 16px;
    line-height: 1.65;
}

.faq-answer ul li {
    margin-bottom: 0.25rem;
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 15px;
    color: #444444;
}

.faq-table th,
.faq-table td {
    border: 1px solid #e5e5e5;
    padding: 0.6rem 1rem;
    text-align: left;
}

.faq-table thead th {
    background-color: #f4f4f4;
    font-weight: 600;
    color: #1a1a1a;
}

.contact-cta {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.contact-cta p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.2px;
}

/* Who We Are Page Styles */
.who-we-are-main {
    flex: 1;
}

.team-section {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

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

.team-member {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: flex-start;
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e5e5;
    flex-shrink: 0;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    letter-spacing: -0.2px;
}

.member-content p {
    font-size: 16px;
    color: #666666;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
    letter-spacing: 0.2px;
}

/* Contact Page Styles */
.contact-form-section {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.contact-form-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-family: inherit;
    color: #1a1a1a;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 2px rgba(107, 70, 193, 0.1);
}

.submit-button {
    background-color: #FFD700;
    color: #000000;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

.submit-button:hover {
    background-color: #FFC700;
}

.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.success-message.show {
    display: block;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: 1.5rem;
}

.lang-btn {
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    background: transparent;
    cursor: pointer;
}

.lang-btn:hover {
    opacity: 0.8;
    background-color: #f5f5f7;
    transform: translateY(-1px);
}

.lang-btn:focus {
    outline: none;
}

.lang-btn.active {
    opacity: 1;
    border-color: #6b46c1; /* Professional Purple */
    background-color: rgba(107, 70, 193, 0.05);
    box-shadow: 0 2px 4px rgba(107, 70, 193, 0.1);
}

.lang-btn img {
    width: 22px;
    height: auto;
    border-radius: 2px;
    display: block;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
        order: -1; /* Keep switcher accessible on mobile */
    }
}

@media (max-width: 1200px) {
    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crn-definition-text p {
        font-size: 48px !important;
    }
    
    .crn-definition-image {
        width: 45%;
    }
}
