/* ========================================
   NEXTRA - Global Stylesheet
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    --color-navy: #0C2233;
    --color-mint: #33C2B1;
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-gray-600: #6c757d;
    --color-gray-300: #dee2e6;
    --color-gray-200: #e9ecef;

    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1200px;
    --spacing-section: 80px;
    --spacing-card: 24px;

    --transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    line-height: 1.6;
    color: var(--color-navy);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-mint);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

a:focus {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
}

/* ========== Layout ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--spacing-section) 0;
}

.section-light {
    background-color: var(--color-light);
}

.section-dark {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.text-center {
    text-center;
}

/* ========== Header ========== */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-navy);
    margin: 3px 0;
    transition: var(--transition);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-navy);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-mint);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a4f 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(51, 194, 177, 0.1) 40%, rgba(51, 194, 177, 0.1) 60%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== Page Header ========== */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a4f 100%);
    color: var(--color-white);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* ========== Typography ========== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-navy);
}

.section-title-white {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--color-white);
}

.section-subtitle-white {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.large-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-navy);
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-navy);
}

/* ========== Grid System ========== */
.grid {
    display: grid;
    gap: 32px;
}

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

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

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

/* ========== Cards ========== */
.card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: var(--spacing-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-center {
    text-align: center;
}

.card h3 {
    color: var(--color-navy);
}

.card p {
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ========== Icons ========== */
.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--color-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    margin: 0 auto 24px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.flag-icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.flag-icon img {
    border: 1px solid var(--color-gray-300);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #2ba897;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 194, 177, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

.btn-block {
    width: 100%;
    display: block;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Process Flow ========== */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background-color: var(--color-mint);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(51, 194, 177, 0.3);
}

.arrow-right {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: var(--color-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(51, 194, 177, 0.3);
    z-index: 10;
}

.process-flow-mobile {
    display: none;
}

.process-step-mobile {
    margin-bottom: 32px;
}

.arrow-down {
    text-align: center;
    margin: 24px 0;
    width: 32px;
    height: 32px;
    background-color: var(--color-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(51, 194, 177, 0.3);
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    background-color: rgba(51, 194, 177, 0.1);
    color: var(--color-mint);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 12px 0;
}

/* ========== Optional Services ========== */
.optional-services {
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-option {
    color: var(--color-mint);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.info-box {
    background-color: rgba(51, 194, 177, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.info-box p {
    margin: 0;
    color: var(--color-mint);
    font-weight: 500;
}

.recommendation {
    border-top: 1px solid var(--color-gray-200);
    padding-top: 16px;
    margin-top: 16px;
}

.recommendation p {
    margin: 0;
    color: var(--color-navy);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ========== Service Lists ========== */
.service-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.service-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--color-gray-600);
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-mint);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ========== Partners ========== */
.partner-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.partner-header h3 {
    margin: 0;
}

.country-flag {
    margin-right: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.country-flag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.partner-role {
    background-color: rgba(51, 194, 177, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.partner-role p {
    margin: 0;
    color: var(--color-mint);
    font-weight: 600;
    font-size: 1.125rem;
}

.partner-specialty {
    border-top: 1px solid var(--color-gray-200);
    padding-top: 16px;
}

.partner-specialty p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* ========== Contact ========== */
.contact-grid {
    align-items: start;
}

.contact-info {
    margin: 32px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: var(--color-gray-600);
}

/* ========== Forms ========== */
.contact-form {
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-navy);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    font-family: var(--font-system);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-mint);
    box-shadow: 0 0 0 3px rgba(51, 194, 177, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.form-notice {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    text-align: center;
    margin-top: 16px;
}

/* ========== Country Info ========== */
.country-info {
    background-color: var(--color-light);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.country-info p {
    margin: 4px 0;
    font-size: 0.875rem;
}

/* ========== Content Box ========== */
.content-box {
    max-width: 900px;
    margin: 0 auto;
}

/* ========== Footer ========== */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 48px 0;
}

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

.footer-column h4 {
    color: var(--color-mint);
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.footer-column p {
    margin: 8px 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: var(--color-mint);
}

.footer-logo {
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

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

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== Utilities ========== */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

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

/* Large Devices (1200px and up) */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .section-title,
    .section-title-white {
        font-size: 2.25rem;
    }
}

/* Medium Devices (992px and down) */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Small Devices (768px and down) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section-title,
    .section-title-white {
        font-size: 1.75rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .country-flag {
        width: 60px;
        margin-right: 12px;
    }

    :root {
        --spacing-section: 48px;
    }
}

/* Extra Small Devices (576px and down) */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

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

    .section-title,
    .section-title-white {
        font-size: 1.5rem;
    }

    .card {
        padding: 16px;
    }

    .country-flag {
        width: 50px;
        margin-right: 10px;
    }
}

/* ========== Print Styles ========== */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--color-white);
    }

    .card {
        border: 1px solid var(--color-gray-600);
    }
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
}
