/* 
 * IMMIGRATION SUCCESS - Quebec City Edition (Vibrant)
 */

:root {
    /* Brand Colors */
    --navy-dark: #0a1f35;
    --navy-primary: #0f2b4a; 
    --red-accent: #c92a2a; 
    --red-dark: #a11b1b;
    --white: #ffffff;
    --gray-light: #f4f5f7;
    --gray-border: #e1e4e8;
    --text-dark: #1a1a1a;
    
    --container-width: 1200px;
    --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* TYPOGRAPHY */
h1, h2, h3 { color: var(--navy-primary); font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; letter-spacing: -1px; line-height: 1.1; }
h2 { font-size: 2.5rem; }
a { text-decoration: none; transition: 0.2s; }

/* UTILITIES */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bg-gray { background-color: var(--gray-light); }
.text-center { text-align: center; }

/* BUTTONS */
.btn {
    display: inline-block; padding: 16px 32px; font-weight: 600;
    border-radius: var(--radius); text-transform: uppercase; font-size: 0.9rem;
    letter-spacing: 1px; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background-color: var(--red-accent); color: var(--white); }
.btn-primary:hover { background-color: var(--red-dark); }
.btn-outline { 
    background-color: rgba(255,255,255,0.1); 
    border-color: var(--white); color: var(--white); 
    backdrop-filter: blur(4px); /* Modern glass effect */
}
.btn-outline:hover { background-color: var(--white); color: var(--navy-primary); }

/* HEADER */
header {
    height: 90px; background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 999;
    display: flex; align-items: center;
}
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-container { display: flex; align-items: center; height: 60px; }
.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-link { color: var(--text-dark); font-weight: 500; }
.nav-link:hover { color: var(--red-accent); }
.nav-link.active { color: var(--navy-primary); font-weight: 700; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }
/* HERO SECTION - USING YOUR LOCAL IMAGE */
/* HERO SECTION - Centered Text & Better Image Fit */
.hero {
    /* 1. Size of the hero section */
    min-height: 85vh; 
    
    /* 2. YOUR IMAGE CONFIGURATION */
    background-image: url('background.jpg'); /* Make sure this filename matches yours! */
    
    /* This makes the image cover the area without leaving white bars */
    background-size: cover; 
    
    /* This centers the image so important parts in the middle aren't cut off */
    background-position: center center; 
    
    background-repeat: no-repeat;
    position: relative;
    
    /* 3. CENTER THE CONTENT (FLEXBOX) */
    display: flex;
    align-items: center;     /* Vertical Center */
    justify-content: center; /* Horizontal Center */
}

/* The Dark Overlay (Optional - Improves text readability) */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Darker overlay to make white text pop on any image */
    background: rgba(10, 31, 53, 0.6); 
    z-index: 1;
}

/* The Text Content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px; /* Limits width so text doesn't stretch too far */
    
    /* CENTERS THE TEXT ITSELF */
    text-align: center; 
    margin: 0 auto;
}

/* Typography Tweaks for Centered Look */
.hero h1 { 
    color: var(--white); 
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero p { 
    color: var(--white); 
    font-size: 1.35rem; 
    margin-bottom: 2.5rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.95;
    
    /* Ensure paragraph is centered */
    margin-left: auto;
    margin-right: auto;
}

/* 4. The Overlay - Much lighter now */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient: Dark at bottom for text, Transparent at top for Sky */
    background: linear-gradient(to right, rgba(15, 43, 74, 0.85) 0%, rgba(15, 43, 74, 0.3) 60%, rgba(15, 43, 74, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Text sits ON TOP of the overlay */
    width: 100%;
}

.hero h1 { 
    color: var(--white); 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Ensures text pops against background */
}
.hero p { 
    color: var(--white); 
    font-size: 1.35rem; margin-bottom: 2.5rem; max-width: 650px; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    opacity: 0.95;
}

/* CARDS & GRID */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.service-card {
    background: var(--white); padding: 40px;
    border: 1px solid var(--gray-border); border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--navy-primary); }
.icon-box {
    width: 60px; height: 60px; background-color: var(--gray-light); color: var(--navy-primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    border-radius: var(--radius); margin-bottom: 24px;
}

/* FOOTER */
footer { background-color: var(--navy-primary); color: var(--white); padding: 80px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
footer h4 { color: var(--white); margin-bottom: 24px; font-size: 1.1rem;}
footer a { color: #b0c4de; }
footer a:hover { color: var(--white); }
footer ul li { margin-bottom: 12px; }

/* MOBILE */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 90px; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    h1 { font-size: 2.5rem; }
    .hero { background-position: center; } /* Center image on mobile */
    .hero::before { background: linear-gradient(to bottom, rgba(15, 43, 74, 0.4), rgba(15, 43, 74, 0.9)); } /* Darker bottom for mobile text */
    .footer-cols { grid-template-columns: 1fr; }
}




/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    left: 20px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    font-size: 18px;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .whatsapp-text {
        display: none;
    }

    .whatsapp-widget {
        padding: 14px;
        border-radius: 50%;
    }
}



/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c92a2a;
}

.testimonial-header h4 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-sub {
    font-size: 0.85rem;
    color: #777;
}

.testimonial-stars {
    color: #f4b400; /* gold */
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}
