/* === Font Imports === */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Questrial&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Questrial&family=Pacifico&display=swap");

body,
p {
    font-family: "Lato", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Questrial", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #63acf4;
    --blue-dark: #1d75cd;
    --text: #000;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--blue);
    line-height: 1.6;
    color: var(--text);
}

/* ========== NAVBAR ========== */
    :root {
        --blue: #63acf4;
        --text: #000;
        --dropdown-bg: #f9f9f9;
        --dropdown-text: #333;
        --dropdown-hover-bg: #ddd;
        --grey-border: #ccc; 
    }

    .navbar {
        padding: 10px 20px;
        background-color: var(--blue) !important;
    }
    
    .bg-light {
        background-color: transparent !important;
    }

    /* 2. Logo/Brand */
    .navbar-brand {
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
    }

    .navbar-brand img {
        max-height: 40px;
        width: auto;
        display: block;
    }

    /* 3. Navigation Links */
    .navbar-nav .nav-link {
        color: var(--text) !important;
        font-size: 16px;
        margin: 0 5px;
        padding: 8px 10px;
    }

    /* Link Hover Effect */
    .navbar-nav .nav-link:hover {
        opacity: 0.85;
    }

    .navbar-nav .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .navbar-nav .dropdown-toggle::after {
        content: "";
        width: 6px;
        height: 6px;
        border-right: 2px solid var(--text);
        border-bottom: 2px solid var(--text);
        transform: rotate(45deg);
        margin-top: -2px;
        display: inline-block;
        vertical-align: middle;
        border-left: none;
        border-top: none;
    }

    .dropdown-menu {
        background: #fff !important; 
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        border: none;
        min-width: 160px;
        padding: 0;
        border-radius: 0; 
    }
    
    .dropdown-menu .dropdown-item {
        color: var(--dropdown-text);
        padding: 12px 16px;
        font-size: 16px;
        background-color: #fff !important; 
    }

    .dropdown-menu .dropdown-item:hover {
        background: var(--dropdown-hover-bg) !important;
    }

    .navbar-contact-btn {
        display: inline-block;
        text-decoration: none;
        
        background: #fff;
        color: #000;
        padding: 8px 15px;
        font-size: 14px;
        margin-left: 10px;
        
        border-radius: 0 !important; 
        border-top: 1px solid var(--grey-border) !important;
        border-left: 1px solid var(--grey-border) !important;
        border-right: 1px solid var(--grey-border) !important;
        border-bottom: 2px solid var(--grey-border) !important; 
    }

    .navbar-contact-btn:hover {
        background: #eee;
        color: #000;
        border-top: 1px solid var(--grey-border) !important;
        border-left: 1px solid var(--grey-border) !important;
        border-right: 1px solid var(--grey-border) !important;
        border-bottom: 2px solid var(--grey-border) !important;
    }

    .navbar-toggler {
        border: none;
        padding: 0;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb%280, 0, 0%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    @media (max-width: 991.98px) {
        .navbar-collapse {
            background-color: var(--blue) !important;
        }
        .navbar-nav .nav-item {
            width: 100%;
        }
        .navbar-nav {
            margin: 0 !important;
        }
        .navbar-nav .nav-link, .navbar-brand {
             padding: 10px 0;
        }
    }

/* ========== BANNER / HERO ========== */
.banner {
    display: flex;
    border: 2px solid #000;
    max-width: 90vw;
    margin: 70px auto;
    overflow: hidden;
    min-height: 70vh;
    background-color: var(--blue);
}

.banner .banner-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner .banner-text h1 {
    font-size: 68px;
    font-weight: 700;
    margin-bottom: 10px;
    word-wrap: break-word;
    hyphens: auto;
}

.banner .banner-text p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #333;
}

.banner .banner-buttons {
    display: flex;
    gap: 10px;
}

.banner .banner-buttons a {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid #000;
    transition: .3s;
}

.banner .banner-buttons a:first-child {
    background: #ffffff;
    color: #000000;
}

.banner .banner-buttons a:last-child {
    background: none;
    color: #000;
}

.banner .banner-image {
    flex: 1;
    background: #ddd;
    min-height: 280px;
}

.banner .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        text-align: center;
        max-width: 95vw;
    }

    .banner .banner-text {
        padding: 20px;
    }

    .banner .banner-text h1 {
        font-size: clamp(48px, 12vw, 68px);
        line-height: 1.1;
    }

    .banner .banner-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .banner {
        max-width: 98vw;
        margin: 50px auto;
    }

    .banner .banner-text {
        padding: 15px;
    }

    .banner .banner-text h1 {
        font-size: clamp(40px, 11vw, 56px);
    }
}

/* ========== SERVICES ========== */
#custom-services-section.services {
    padding: 60px 20px;
    background: #e8f2fe;
}

#custom-services-section.services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
}

#custom-services-section.services .solutions-label {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

#custom-services-section.services .main-heading {
    text-align: center;
    font-size: 56px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    margin-top: 0;
}

#custom-services-section.services .subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    margin-top: 0;
}

/* --- CRITICAL LAYOUT FIX --- */
#custom-services-section.services .services-grid {
    display: grid !important;
    /* Force exactly 4 columns for desktop to prevent wrapping */
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 20px !important;
    margin-top: 40px;
    padding: 0 !important;
}

#custom-services-section .service-card {
    background: linear-gradient(135deg, #6b6b6b 0%, #4a4a4a 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    /* Use !important for padding and min-height */
    padding: 40px 30px !important;
    color: #fff;
    position: relative;
    /* CRITICAL HEIGHT FIX: Ensure min-height is respected */
    min-height: 280px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .3s ease, box-shadow .3s ease;
    box-sizing: border-box !important; /* Ensure box-sizing doesn't ruin the width */
    margin: 0 !important; /* Reset any unwanted margins from Bootstrap .col classes */
}
/* --------------------------- */

#custom-services-section .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#custom-services-section .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#custom-services-section .card-content {
    position: relative;
    z-index: 2;
}

#custom-services-section .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    opacity: 0.9;
}

#custom-services-section .service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.2;
}

#custom-services-section .service-description {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
    margin-top: 0;
}

#custom-services-section .learn-more {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: inline-block !important;
}

#custom-services-section .learn-more::after {
    content: "→";
    margin-left: 8px;
    transition: transform .3s ease;
}

#custom-services-section .learn-more:hover::after {
    transform: translateX(4px);
}

#custom-services-section .service-card:nth-child(1) {
    background-image: url("../Images/legal-company-formation.jpg");
}

#custom-services-section .service-card:nth-child(2) {
    background-image: url("../Images/virtual-office-address.jpg");
}

#custom-services-section .service-card:nth-child(3) {
    background-image: url("../Images/business-bank-account.jpg");
}

#custom-services-section .service-card:nth-child(4) {
    background-image: url("../Images/residance-work-permits.jpg");
}

@media (max-width: 768px) {
    #custom-services-section.services .main-heading {
        font-size: 36px;
    }

    #custom-services-section.services .services-grid {
        /* Revert to single column for mobile */
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    #custom-services-section .service-card {
        /* Apply mobile-specific overrides */
        padding: 30px 24px !important;
        min-height: 240px !important;
    }
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: 60px 20px;
    background: var(--blue);
}

.testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: #000;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--blue);
    border: 2px solid #000;
    padding: 30px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.star {
    width: 20px;
    height: 20px;
    color: #000;
    font-size: 18px;
}

.testimonial-text {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 25px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.client-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.client-details p {
    font-size: .9rem;
    color: #666;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
    }
}

/* ========== CTA ========== */
.cta-wrapper {
    width: 100%;
    background: var(--blue-dark);
    padding: 70px 0;
}

.cta-section {
    background: var(--blue-dark);
    padding: 80px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url("../Images/homepage-cta.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.cta-heading,
.cta-subtitle,
.cta-buttons {
    position: relative;
    z-index: 1;
}

.cta-heading {
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-subtitle {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-homepage {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: .3s;
    min-width: 140px;
}

.btn-primary-homepage {
    background: #fff;
    color: #333;
    border: 2px solid #fff;
}

.btn-primary-homepage:hover {
    background: #f0f0f0;
    color: black;
    transform: translateY(-2px);
}

.btn-secondary-homepage {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary-homepage:hover {
    background: #fff;
    color: #333 !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-heading {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-homepage {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .cta-heading {
        font-size: 1.75rem;
    }

    .cta-section {
        padding: 40px 15px;
    }
}

/* ========== FOOTER ========= */
.incorwise-footer {
    color: #000;
    padding: clamp(32px, 6vw, 70px);
    background-color: var(--blue);
}

.incfw-frame {
    width: 100%;
    margin-inline: auto;
    max-width: 1200px;
}

.incfw-container {
    position: relative;
    border: 1px solid #000;
    background: #63acf4;
    color: #000;
    padding: 28px 30px 72px 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo nav" "content content";
    gap: 18px 30px;
}

.incfw-top {
    display: contents;
}

.incfw-logo {
    grid-area: logo;
    font-style: italic;
    font-size: 18px;
}

.incfw-nav {
    grid-area: nav;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.incfw-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.incfw-col a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}

.incfw-col a:hover {
    text-decoration: underline;
}

.incfw-content {
    grid-area: content;
    max-width: 720px;
}

.incfw-title {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 12px;
}

.incfw-sub {
    font-size: 16px;
    color: #000;
    opacity: 0.85;
    line-height: 1.4;
    margin-bottom: 20px;
    max-width: 520px;
}

.incfw-buttons {
    display: flex;
    gap: 15px;
}

.incfw-btn {
    padding: 12px 24px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.incfw-btn:hover {
    background: #f3f3f3;
}

.incfw-social {
    position: absolute;
    right: 30px;
    bottom: 28px;
    display: flex;
    gap: 12px;
}

.incfw-ico {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    opacity: 0.9;
}

.incfw-ico:hover {
    opacity: 1;
}

.incfw-legal {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-size: 14px;
    padding: 8px 6px;
}

.incfw-legal-links {
    display: flex;
    gap: 20px;
}

.incfw-legal-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.incfw-legal-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .incfw-container {
        grid-template-columns: 1fr;
        grid-template-areas: "logo" "content" "nav";
    }

    .incfw-nav {
        display: block;
        padding-top: 4px;
    }

    .incfw-col {
        display: contents;
    }

    .incfw-col a {
        display: block;
        margin-top: 8px;
    }

    .incfw-social {
        position: static;
        margin-top: 10px;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .incfw-title {
        font-size: 34px;
    }

    .incfw-col a,
    .incfw-legal {
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .incfw-legal {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }

    .incfw-legal-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
}

.incfw-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}