/* ==========================================================================
   GLOBAL RESET & VARIABLE HOOKS
   ========================================================================== */
:root {
    --primary-color: #0f172a; /* Slate Dark / Corporate */
    --accent-color: #2563eb;  /* Premium Professional Blue */
    --text-color: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word; /* Prevents long titles or unspaced text strings from blowing out panels */
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* KEEP IT ONLY HERE to cleanly catch horizontal text blowouts */
    font-family: var(--font-stack);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==========================================================================
   REUSABLE LAYOUT UTILITIES
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

/* ==========================================================================
   NAVIGATION BAR & SITE HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

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

.dropdown-trigger i {
    font-size: 0.75rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    list-style: none;
    min-width: 240px;
    padding: 10px 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

/* Social Communication Icons Header Block */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
}

.social-icon {
    font-size: 1.25rem;
    color: #64748b;
    transition: color 0.2s, transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.whatsapp:hover { color: #25D366; }
.social-icon.telegram:hover { color: #0088cc; }
.social-icon.email:hover { color: var(--accent-color); }

/* Language Dropdown Selector Configuration */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-trigger {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lang-trigger:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.lang-trigger i {
    font-size: 0.7rem;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    min-width: 110px;
    padding: 8px 0;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1010;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    list-style: none;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-color);
    text-align: left;
    font-weight: 600;
}

.lang-menu a:hover, .lang-menu a.active {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.lang-trigger img, 
.lang-menu img {
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    vertical-align: middle;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================================
   SERVICE PROFILE PAGE BRANDING & SUB-SECTIONS
   ========================================================================== */

/* 1. Hero Content Layout */
.service-detail-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.96)), 
                url('https://images.unsplash.com/photo-1549421263-5ec394a5ad4c?q=80&w=1600') no-repeat center/cover;
    padding: 100px 20px 60px 20px;
    color: #ffffff;
    text-align: left;
    width: 100%;
}

.hero-overlay-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.service-detail-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-subtitle {
    max-width: 800px;
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* 2. Main Dual Column Grid Context */
.ie-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    /* align-items: start; HAS BEEN REMOVED */
}

.ie-main-content {
    width: 100%;
}

.ie-main-content h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-mid-title {
    font-size: 1.6rem;
    color: #0f172a;
    margin-top: 45px;
    margin-bottom: 20px;
    border-left: 4px solid #2563eb;
    padding-left: 15px;
    font-weight: 700;
}

.ie-main-content p {
    color: #334155;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* 3. Highlight Framework Box */
.legal-nature-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    margin: 25px 0;
    width: 100%;
    gap: 20px;
}

.legal-nature-box .tax-badge {
    background: #475569;
    color: #ffffff;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tax-badge-text {
    flex: 1;
    min-width: 0;
}

.tax-badge-text h3 {
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.tax-badge-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.4;
}

/* 4. Document Checklists */
.advantage-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    width: 100%;
}

.advantage-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    width: 100%;
}

.advantage-list li i {
    color: #2563eb;
    margin-right: 14px;
    margin-top: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.advantage-text {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}

.advantage-text strong {
    color: #0f172a;
    font-weight: 600;
    display: inline;
}

/* 5. Process Step Track Timeline */
.timeline-container {
    position: relative;
    border-left: 2px solid #e2e8f0;
    padding-left: 30px;
    margin: 30px 0 30px 15px;
    width: calc(100% - 15px);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -46px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.timeline-panel {
    width: 100%;
}

.timeline-panel h4 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 600;
}

.timeline-panel p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   PROPER TABLE SYSTEM Lanes
   ========================================================================== */
.compliance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0 35px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.compliance-table th, 
.compliance-table td {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #ffffff;
}

.compliance-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
}

/* Under 768px, wrap table context safely inside an isolated scroll lane */
@media (max-width: 768px) {
    table.compliance-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .compliance-table th, 
    .compliance-table td {
        white-space: nowrap !important;
        padding: 12px 14px !important;
    }
}

/* ==========================================================================
   CLEAN ACTION STICKY SIDEBAR ARCHITECTURE (DESKTOP)
   ========================================================================== */
.ie-sidebar {
    width: 100%;
    position: relative;
}

/* The card container itself holds position: sticky and slides inside the stretched .ie-sidebar column lane */
.sidebar-sticky-card {
    position: -webkit-sticky; /* For Safari support */
    position: sticky;
    top: 120px; /* Space from the top of the viewport when scrolling */
    height: fit-content; /* CRUCIAL: Stops the card from stretching so it can slide */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
    width: 100%;
    z-index: 10;
}

.sidebar-sticky-card h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
}

.sidebar-sticky-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sidebar-sticky-card hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 15px 0;
}

.price-tag {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 20px 0;
}

.price-tag span {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
}

.sidebar-includes {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    width: 100%;
}

.sidebar-includes li {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    width: 100%;
}

.sidebar-includes li i {
    color: #16a34a;
    margin-right: 10px;
    flex-shrink: 0;
}

/* CTA Vertical Button Group */
.sidebar-action-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.sidebar-action-group .cta-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.sidebar-action-group .cta-sidebar-btn i {
    font-size: 1.05rem;
}

.sidebar-action-group .cta-sidebar-btn:active {
    transform: scale(0.98);
}

/* Button Color Tone Styling Configuration Rules */
.sidebar-action-group .btn-base-blue {
    background: #2563eb;
    color: #ffffff;
}

.sidebar-action-group .btn-base-blue:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.sidebar-action-group .btn-blue-glow {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    animation: bluePulseGlow 2.5s infinite;
}

.sidebar-action-group .btn-blue-glow:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

@keyframes bluePulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6), 0 4px 6px rgba(0, 0, 0, 0.05); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0), 0 10px 15px rgba(37, 99, 235, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 4px 6px rgba(0, 0, 0, 0.05); }
}

.sidebar-action-group .btn-gold-glow {
    background: #eab308;
    color: #0f172a;
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.5);
    animation: goldPulseGlow 2.5s infinite;
}

.sidebar-action-group .btn-gold-glow:hover {
    background: #ca8a04;
    transform: translateY(-2px);
}

@keyframes goldPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7), 0 4px 6px rgba(0, 0, 0, 0.05); }
    70% { box-shadow: 0 0 0 10px rgba(234, 179, 8, 0), 0 10px 15px rgba(234, 179, 8, 0.15); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0), 0 4px 6px rgba(0, 0, 0, 0.05); }
}

/* ==========================================================================
   SITE FOOTER SECTION
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 70px 0 0 0;
    color: #cbd5e1;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.footer-column.brand-column {
    flex: 1.4;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: 100%;
}

.logo-accent {
    color: #004aad;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 25px;
    width: 100%;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    width: 100%;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.footer-links-list li {
    width: 100%;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links-list a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.office-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 25px;
    width: 100%;
}

.office-address i {
    color: #38bdf8;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-social-circles {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-social-circles a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-circles a:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.05);
}

.footer-social-text-links {
    display: flex;
    gap: 18px;
    margin-top: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-social-text-links a {
    color: #94a3b8;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-text-links a:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

/* Bottom Copyright Bar Layout Rules */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 25px 0;
    font-size: 0.85rem;
    color: #64748b;
    width: 100%;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   ADAPTIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================================================== */

/* Laptop & Tablet Breakpoint (900px down) */
@media (max-width: 900px) {
    .ie-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        padding: 40px 20px;
        width: 100% !important;
    }

    .ie-main-content {
        width: 100% !important;
        min-width: 0 !important;
    }

    .sidebar-sticky-card {
        position: static !important; /* Disables sticky tracking on phones completely so it behaves like a normal flow card */
        width: 100% !important;
    }

    .footer-container {
        flex-direction: column;
        gap: 35px;
    }

    .footer-column, .footer-column.brand-column {
        width: 100%;
        flex: none;
    }
}

/* Mobile Header Navigation Transformation (768px down) */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        border-bottom: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .nav-socials {
        border-left: none;
        padding-left: 0;
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        display: none;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--bg-light);
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }

    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .service-detail-hero h1 {
        font-size: 2.2rem;
    }
}

/* Compact Smartphones (425px down to 320px) */
@media (max-width: 425px) {
    .section-container {
        padding: 40px 16px;
    }

    .nav-container, .ie-layout-grid, .footer-container, .footer-bottom-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .service-detail-hero {
        padding: 80px 16px 40px 16px;
    }

    .service-detail-hero h1 {
        font-size: 1.85rem;
    }

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

    .ie-main-content h2 {
        font-size: 1.5rem;
    }

    .section-mid-title {
        font-size: 1.35rem;
        padding-left: 10px;
    }

    .legal-nature-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px;
    }

    .price-tag {
        font-size: 1.85rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-legal-links {
        justify-content: center;
        width: 100%;
    }
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 35px; /* Adjust this value to perfectly match your navbar height */
    transition: transform 0.2s ease;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.navbar-logo-img {
    height: 100%;       /* Instantly locks to the height of the parent wrapper */
    width: auto;        /* Preserves the original aspect ratio so it doesn't stretch */
    display: block;
    object-fit: contain;
}

/* Tightens the layout footprint on smartphones */
@media (max-width: 768px) {
    .logo-wrapper {
        height: 35px; 
    }
}

/* Custom footer layout tweak */
.footer-logo-wrapper {
    height: 50px;          /* Feel free to increase or decrease this to fit your footer scale */
    margin-bottom: 1.5rem; /* Creates a clean breathing space between the logo and text */
    display: inline-block;
}