/* --- 1. CORE BRANDING & VARIABLES --- */
:root {
    --brand-blue: #0a192f;
    --accent-gold: #c5a059;
    --accent-gold-light: #e0c58e;
    --white: #ffffff;
    --text-main: #2d3436;
    --nav-height: 80px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- 2. BASE ERGONOMICS --- */
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.8; 
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* Fluid Typography (Shine) */
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--brand-blue); }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; color: var(--brand-blue); }
h3 { font-size: 1.4rem; font-weight: 600; color: var(--brand-blue); }

/* --- HERO TEXT OVERRIDE --- */
.hero-lifestyle h1 {
    color: var(--white) !important; /* Forces the text to be white instead of navy */
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Adds a subtle shadow for better readability */
}

.hero-lifestyle p {
    color: rgba(255, 255, 255, 0.9); /* Makes the subtext a clean, soft white */
}

/* Ensure the 'Established 1991' tag also stands out */
.legacy-tag {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}
/* --- 3. UPGRADED NAVIGATION --- */
.navbar {
    height: var(--nav-height);
    background: var(--white);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--brand-blue);
    letter-spacing: -1px;
}

.nav-logo span { color: var(--accent-gold); }

.nav-menu { display: flex; list-style: none; align-items: center; margin: 0; }

.nav-link {
    text-decoration: none;
    color: var(--brand-blue);
    margin-left: 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover { color: var(--accent-gold); }

.btn-cta {
    background: var(--brand-blue);
    color: white !important;
    padding: 10px 22px;
    border-radius: 4px;
    margin-left: 2.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-cta:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

/* --- 4. HERO: VISUAL AUTHORITY --- */
.hero-lifestyle {
    height: 55vh;
    min-height: 450px;
    margin-top: var(--nav-height);
    /* Fixed pathing to match your folder filename exactly */
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.9)), 
                url('finanical.jpg') center/cover no-repeat; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%); 
}

/* --- 5. THE MATRIX GRID (ERGONOMIC SORTING) --- */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.matrix-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 25, 47, 0.03);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.matrix-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}

.matrix-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

/* --- 6. MATH HIGHLIGHT & QUOTES --- */
.math-highlight {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    color: white;
    padding: clamp(3rem, 10vw, 6rem);
    border-radius: 24px;
    margin: 80px 0;
    text-align: center;
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.2);
}

.math-highlight h2 { color: var(--accent-gold); }

.quote-block {
    max-width: 850px;
    margin: 100px auto;
    padding: 0 2rem;
    text-align: center;
}

.quote-block blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.5;
    color: var(--brand-blue);
    font-style: italic;
    position: relative;
    margin: 0;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-lifestyle { height: 40vh; }
    .nav-menu { display: none; } /* Add mobile toggle logic here later */
    .matrix-item { padding: 2rem; }
}
/* --- PHILOSOPHY & FINAL SECTIONS --- */

.philosophy-footer-card {
    background: #fdfaf3; /* Warm, trustworthy background */
    padding: 60px;
    border-radius: 20px;
    border-left: 8px solid var(--accent-gold);
    margin: 80px 0;
    text-align: center;
}

.philosophy-footer-card h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.philosophy-footer-card p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-main);
}

.main-footer {
    background: var(--brand-blue);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
    border-top: 5px solid var(--accent-gold);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

.disclaimer {
    max-width: 800px;
    margin: 15px auto 0;
    font-style: italic;
}

/* Ensure Hero Text is White */
.hero-lifestyle h1 { color: var(--white) !important; margin-bottom: 10px; }
.hero-lifestyle p { color: rgba(255,255,255,0.9); }

/* Navigation Active State */
.nav-link.active {
    color: var(--accent-gold) !important;
    font-weight: 600;
}
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--brand-blue);
    transition: all 0.3s ease;
}

/* Mobile: Reveal Hamburger and Drawer */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%; /* Hidden off-screen */
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    /* Shown when active */
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .nav-link {
        margin-left: 0;
        font-size: 1.2rem;
    }

    /* Animation for the Hamburger to "X" */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
:root {
    --brand-blue: #0a192f;
    --accent-gold: #c5a059;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Ergonomics */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.7; 
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--brand-blue); }

/* --- GLASSMORPHISM HERO SECTION --- */
.hero-revamp {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('toronto.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect for "Shine" */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- 5S SERVICE MATRIX (UX IMPROVEMENT) --- */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.matrix-item {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Standardizing the visual order */
.matrix-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--accent-gold);
    transform: scaleY(0);
    transition: var(--transition);
}

.matrix-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.matrix-item:hover::before { transform: scaleY(1); }

/* --- MISSION STATS (SHINE) --- */
.mission-stats {
    display: flex;
    justify-content: space-around;
    padding: 60px 0;
    background: var(--brand-blue);
    color: white;
    border-radius: 15px;
    margin-top: -100px; /* Overlap effect */
    position: relative;
    z-index: 10;
}

.stat-item strong {
    font-size: 3rem;
    color: var(--accent-gold);
    display: block;
}
* { margin: 0; padding: 0; box-sizing: border-box; }


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- NAVIGATION & ERGONOMIC NAV --- */
.navbar {
    height: var(--nav-height);
    background: var(--white);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--brand-blue);
    letter-spacing: -1px;
}

.nav-logo span { color: var(--accent-gold); }

.nav-menu { display: flex; list-style: none; align-items: center; margin: 0; }

.nav-link {
    text-decoration: none;
    color: var(--brand-blue);
    margin-left: 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover { color: var(--accent-gold); }
/* --- HERO SECTION WITH TORONTO IMAGE --- */
.hero-revamp {
    height: 100vh;
    background: url('toronto.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.overlay {
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6); /* Navy tint for text contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4rem 3rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    max-width: 850px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.legacy-tag {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-card h1 { font-size: 3.2rem; color: white; margin-bottom: 1rem; }
.accent-line { width: 80px; height: 3px; background: var(--accent-gold); margin: 2rem auto; border: none; }
.hero-subtext { font-size: 1.2rem; margin-bottom: 3rem; opacity: 0.9; }

.btn-main {
    background: var(--accent-gold);
    color: var(--brand-blue);
    padding: 16px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: var(--transition);
    display: inline-block;
}

.btn-main:hover {
    background: var(--white);
    transform: translateY(-3px);
}

/* --- MISSION & PHILOSOPHY SECTION --- */
.mission-section { padding: 100px 0; background: var(--white); }

.mission-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }

blockquote {
    border-left: 5px solid var(--accent-gold);
    padding: 20px 30px;
    font-style: italic;
    font-size: 1.3rem;
    margin: 40px 0;
    color: var(--brand-blue);
    background: var(--bg-light);
}

.mission-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--brand-blue);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
}

/* --- SERVICE MATRIX (5S ORGANIZATION) --- */
.services-matrix { padding: 100px 0; background: var(--bg-light); }

.client-assurance-card {
    background: var(--brand-blue);
    color: white;
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 60px;
    border-left: 10px solid var(--accent-gold);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.matrix-item {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.matrix-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.matrix-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.matrix-item h4 { margin-bottom: 15px; font-size: 1.2rem; }
.matrix-item.accent { background: #fffdf5; border: 1px solid var(--accent-gold); }

/* --- FOUNDER SECTION --- */
.founder-section { padding: 100px 0; background: var(--white); }

.founder-card {
    background: var(--brand-blue);
    color: white;
    padding: 60px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.founder-info h2 { color: white; font-size: 2.5rem; margin: 15px 0; }
.founder-info h2 small { font-size: 1rem; color: var(--accent-gold); }

.credentials-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.credentials-list li { display: flex; align-items: center; font-size: 0.95rem; }
.credentials-list i { color: var(--accent-gold); margin-right: 15px; font-size: 1.2rem; }

/* --- MOBILE RESPONSIVENESS & HAMBURGER --- */
.mobile-toggle { display: none; flex-direction: column; cursor: pointer; }
.bar { width: 25px; height: 3px; background: var(--brand-blue); margin: 4px 0; transition: 0.4s; }

@media (max-width: 992px) {
    .matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; /* Fixed is better for mobile UX */
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height)); /* Full height overlay */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px); /* Modern Glassmorphism */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Hidden State */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-item {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        margin: 1.5rem 0;
    }

    /* Staggered link appearance when menu opens */
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Transition delays for each item (Set in Order) */
    .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-item:nth-child(4) { transition-delay: 0.4s; }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--brand-blue);
    }
}
.btn-cta {
    background: var(--brand-blue);
    color: white !important;
    padding: 10px 22px;
    border-radius: 4px;
    margin-left: 2.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-cta:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.main-footer {
    background: var(--brand-blue);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
    border-top: 5px solid var(--accent-gold);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

.disclaimer {
    max-width: 800px;
    margin: 15px auto 0;
    font-style: italic;
}
/* Layout Strategy: Image on left, Info on right */
.founder-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--brand-blue);
    color: white;
    padding: 60px;
    border-radius: 20px;
}

.founder-image {
    flex: 1; /* Takes up 1 part of the space */
    max-width: 350px;
}

.founder-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid var(--accent-gold); /* 'Shine' effect around the portrait */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.founder-info {
    flex: 1.5; /* Takes up 1.5 parts of the space */
}

/* Standardize for Mobile: Stacks the image on top of text on small screens */
@media (max-width: 768px) {
    .founder-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .founder-image {
        margin-bottom: 30px;
    }
}
/* --- SERVICES UI ENHANCEMENTS --- */
.services-matrix {
    padding: 120px 0;
    background-color: var(--bg-light);
}

/* Trust Badge in Assurance Card */
.assurance-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--brand-blue);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.client-assurance-card {
    background: var(--brand-blue);
    color: white;
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    border-left: 8px solid var(--accent-gold);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
}

.mission-tag {
    font-style: italic;
    color: var(--accent-gold);
    margin-top: 20px;
    font-size: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* Service Icon Styling (Standardization) */
.service-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: block;
}

.matrix-item {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 15px;
    border: 1px solid #eef0f2;
    transition: var(--transition);
}

.matrix-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

/* High-Impact Accent Card */
.matrix-item.accent {
    background: linear-gradient(145deg, #ffffff, #fffdf5);
    border: 2px solid var(--accent-gold);
}
/* --- MOBILE NAVIGATION UI/UX --- */

/* Desktop: Hide Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--brand-blue);
    transition: all 0.3s ease;
}

/* Mobile: Reveal Hamburger and Drawer */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%; /* Hidden off-screen */
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    /* Shown when active */
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .nav-link {
        margin-left: 0;
        font-size: 1.2rem;
    }

    /* Animation for the Hamburger to "X" */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}