:root {
    --primary: #F4F1EA; 
    --accent: #b58d3f; 
    --glass: rgba(255, 255, 255, 0.75);
    --glass-thick: rgba(255, 255, 255, 0.9);
    --specular-border: rgba(181, 141, 63, 0.05);
    --text-main: #1d1d1f; 
    --text-dim: #6e6e73; 
    --shadow: 0 20px 40px rgba(255, 255, 255, 0.6);
    --bg-gradient: radial-gradient(circle at 10% 20%, rgba(197, 160, 89, 0.05) 0%, transparent 40%), #f5f7fa;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #0a0a0a; 
        --accent: #c5a059; 
        --glass: rgba(255, 255, 255, 0.03);
        --glass-thick: rgba(255, 255, 255, 0.07);
        --specular-border: rgba(255, 255, 255, 0.12);
        --text-main: #f8f9fa;
        --text-dim: #a0a5ad;
        --shadow: 0 40px 80px rgba(0,0,0,0.5);
        --bg-gradient: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 45%), #02060c;
    }
    .logo img { filter: brightness(1.1); }
    .wa-float img { filter: invert(1) brightness(100); }
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--bg-gradient);
    background-color: var(--primary); 
    color: var(--text-main); 
    overflow-x: hidden;
    line-height: 1.6;
    background-attachment: fixed;
    transition: background 0.5s ease;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* --- Tickers --- */
.ticker-section { padding: 20px 0; overflow: hidden; }
.ticker-label { 
    text-align: center; font-size: 0.6rem; letter-spacing: 4px; 
    text-transform: uppercase; color: var(--accent); margin-bottom: 15px; opacity: 0.8;
}
.ticker-container { overflow: hidden; white-space: nowrap; width: 100%; position: relative; }
.ticker-track { display: flex; width: max-content; will-change: transform; }

.track-insurance { animation: scroll-left 30s linear infinite; }
.track-banking, .reverse { animation: scroll-right 46s linear infinite; }

.ticker-track img { height: 50px; width: auto; margin: 0 45px; transition: 0.4s; }
.ticker-track img:hover { transform: scale(1.1); }

@keyframes scroll-left { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }
@keyframes scroll-right { 0% { transform: translate3d(-50%, 0, 0); } 100% { transform: translate3d(0, 0, 0); } }

/* --- Navigation --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    margin: 20px 8%; padding: 12px 35px; 
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--specular-border);
    border-radius: 24px;
    position: sticky; top: 20px; z-index: 1000;
    box-shadow: var(--shadow);
}
.logo img { height: 45px; width: auto; transition: 0.3s; }
.nav-links a { 
    text-decoration: none; color: var(--text-main); margin-left: 30px; 
    font-weight: 400; font-size: 0.75rem; letter-spacing: 1.5px;
    text-transform: uppercase; transition: 0.3s; opacity: 0.7;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }

/* --- Layout Sections --- */
.hero {
    height: 40vh; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; padding: 0 20px;
}
.hero h1 { 
    font-size: clamp(2.5rem, 9vw, 5.2rem); line-height: 1.1; margin-bottom: 20px;
    letter-spacing: -2px; font-weight: 700;
}
.hero-tag { letter-spacing: 6px; text-transform: uppercase; font-size: 0.8rem; color: var(--accent); margin-bottom: 15px; font-weight: 500; }

.firm-section {
    text-align: center; max-width: 900px; margin: 0 auto 60px; padding: 0 20px;
}
.firm-tag { color: var(--accent); letter-spacing: 4px; text-transform: uppercase; font-size: 0.75rem; font-weight: 600; margin-bottom: 10px; }
.firm-title { font-size: 3rem; margin-bottom: 25px; line-height: 1.2; }
.firm-desc { color: var(--text-dim); font-size: 1rem; max-width: 800px; margin: 0 auto 40px; }
.firm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; }
.firm-point { background: var(--glass); padding: 30px; border-radius: 24px; border: 1px solid var(--specular-border); }
.firm-point h4 { color: var(--accent); font-size: 1.2rem; margin-bottom: 10px; }
.firm-point p { font-size: 0.9rem; color: var(--text-dim); }

.trust-ribbon {
    margin: 40px 8% 40px; padding: 40px;
    background: var(--glass-thick); backdrop-filter: blur(30px);
    border: 1px solid var(--specular-border); border-radius: 35px;
    display: flex; justify-content: space-around; flex-wrap: wrap; box-shadow: var(--shadow);
}
.trust-item { padding: 15px; text-align: center; flex: 1; min-width: 200px; }
.trust-item h4 { color: var(--accent); font-size: 1.4rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); }

.section-padding { padding: 80px 10%; }
.section-title { text-align: center; font-size: 3.2rem; margin-bottom: 60px; }
.section-title span { color: var(--accent); font-style: italic; font-weight: 400; }

/* --- Components --- */
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.founder-card { 
    background: var(--glass); padding: 50px; border-radius: 40px; 
    border: 1px solid var(--specular-border); box-shadow: var(--shadow);
    /* EDIT: Forced left alignment for entire card content */
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
.founder-img { width: 120px; height: 120px; border-radius: 30px; border: 2px solid var(--accent); margin-bottom: 25px; object-fit: cover; }
.founder-card h3 { color: var(--text-main); margin-bottom: 8px; font-size: 1.7rem; width: 100%; text-align: left; }
.founder-card p { font-weight: 400; font-size: 0.9rem; color: var(--text-dim); width: 100%; text-align: left; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { 
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 35px; border-radius: 32px; border: 1px solid var(--specular-border);
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column;
}
.card:hover { 
    background: var(--glass-thick); transform: translateY(-10px);
    border-color: var(--accent); box-shadow: var(--shadow);
}
.card h3 { color: var(--text-main); font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; }
.card-tag { font-size: 0.7rem; color: var(--accent); letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; font-weight: 600; }

.strategy-list { list-style: none; margin-top: auto; }
.strategy-list li { margin-bottom: 10px; font-size: 0.85rem; color: var(--text-dim); display: flex; align-items: baseline; }
.strategy-list li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 15px; flex-shrink: 0; }

/* --- Contact & Footer --- */
.contact-box { 
    background: var(--glass-thick); padding: 70px; border-radius: 45px; 
    border: 1px solid var(--specular-border);
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; box-shadow: var(--shadow);
}
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.hub-card { 
    background: rgba(0,0,0,0.02); padding: 25px; border-radius: 20px; 
    border: 1px solid var(--specular-border);
}
@media (prefers-color-scheme: dark) { .hub-card { background: rgba(255,255,255,0.03); } }

.hub-card h4 { color: var(--accent); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.hub-card p { font-size: 0.75rem; color: var(--text-dim); }

.social-link { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 0; border-bottom: 1px solid var(--specular-border);
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--text-main);
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }

/* --- Calculator Logic UI --- */
.calc-input-group { margin-bottom: 25px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calc-num-input { 
    width: 120px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--specular-border); 
    background: var(--glass); color: var(--text-main); font-family: 'Poppins'; font-weight: 600; text-align: right; 
}
.calc-range { width: 100%; accent-color: var(--accent); cursor: pointer; }
.word-indicator { font-size: 0.65rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; min-height: 1rem; }

/* --- Floating Button & Utilities --- */
.wa-float {
    position: fixed; bottom: 40px; right: 40px; z-index: 2000;
    background: var(--glass-thick); border: 1px solid var(--specular-border); 
    padding: 16px 30px; border-radius: 100px;
    color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.85rem;
    display: flex; align-items: center; gap: 12px; transition: 0.4s;
    box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.wa-float:hover { transform: scale(1.05); border-color: var(--accent); color: var(--accent); }
.wa-float img { width: 22px; }

/* --- Button Color Fixes --- */
.cta-button {
    display: inline-block; padding: 12px 30px; 
    background: var(--accent); 
    color: white; text-decoration: none; border-radius: 50px; font-size: 0.8rem;
    letter-spacing: 2px; text-transform: uppercase; transition: 0.3s; margin-top: 20px;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: var(--shadow); filter: brightness(1.1); }

.next-step-link {
    display: inline-flex;
    align-items: center;
    justify-content: center; 
    color: var(--accent); 
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 15px;
    transition: 0.3s;
    text-align: center;
}

.next-step-link:hover { transform: translateX(10px); filter: brightness(1.2); }

footer { padding: 60px 8%; text-align: center; opacity: 0.6; font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: var(--text-dim); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hub-grid, .founder-grid, .contact-box { grid-template-columns: 1fr; }
    .contact-box { padding: 40px 20px; }
    .section-title { font-size: 2.5rem; }
    .firm-grid { grid-template-columns: 1fr; }
    .firm-title { font-size: 2.2rem; }
    
    .ticker-track img { height: 40px; margin: 0 25px; opacity: 0.9; }
    .track-insurance { animation: scroll-left 40s linear infinite; }
    .track-banking, .reverse { animation: scroll-right 55s linear infinite; }
    .ticker-section { background: rgba(0, 0, 0, 0.02); padding: 30px 0; margin: 20px 0; }
    .ticker-label { font-size: 0.55rem; letter-spacing: 3px; opacity: 1; font-weight: 600; }
}

@media (max-width: 768px) {
    nav {
        display: flex !important;
        flex-direction: column !important; /* Logo on top, links below */
        align-items: center !important;
        width: 92% !important;
        margin: 10px auto !important;
        padding: 15px 10px !important;
        height: auto !important; /* Ribbon grows to fit the links */
        gap: 12px !important;
        border-radius: 25px !important;
        /* Keep that signature glow visible */
        box-shadow: 0 0 20px rgba(181, 141, 63, 0.2); 
    }

    .logo img {
        height: 45px !important; /* Back to full, readable size */
        width: auto !important;
    }

    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important; /* Allows links to 'hover' to the next line if needed */
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .nav-links a {
        font-size: 0.7rem !important;
        padding: 8px 14px !important;
        background: rgba(181, 141, 63, 0.08) !important; /* The mini-box look */
        border: 1px solid rgba(181, 141, 63, 0.15) !important;
        border-radius: 12px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: nowrap !important;
    }
}

.section-padding { scroll-margin-top: 80px; }

/* EDIT: Forced center alignment for "Visualize Your Growth" sections */
.center-content, .solutions-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}
/* Animation for the Journey Link */
.next-step-card:hover div {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: var(--glass-thick);
    box-shadow: 0 30px 60px rgba(181, 141, 63, 0.15);
}

/* Pulse Light Animation */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 5px 15px rgba(181, 141, 63, 0.1);
        border-color: rgba(181, 141, 63, 0.2);
    }
    50% {
        box-shadow: 0 20px 40px rgba(181, 141, 63, 0.4);
        border-color: rgba(181, 141, 63, 0.6);
    }
    100% {
        box-shadow: 0 5px 15px rgba(181, 141, 63, 0.1);
        border-color: rgba(181, 141, 63, 0.2);
    }
}

/* Apply the pulse to the card */
.next-step-card-box {
    animation: glow-pulse 1.5s infinite ease-in-out;
    transition: all 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Enhance effect on hover */
.next-step-card:hover .next-step-card-box {
    animation: none; /* Stops the slow pulse to stay "bright" when hovering */
    transform: translateY(-10px);
    background: var(--glass-thick);
    box-shadow: 0 30px 60px rgba(181, 141, 63, 0.3);
    border-color: var(--accent);
}
/* --- FIXED UNIVERSAL GLOW (MOBILE & DESKTOP) --- */
#contact {
    position: relative;
    padding: 80px 5%; /* Slightly tighter for mobile screens */
    overflow: visible !important; /* Forces the browser to show the glow */
}

.contact-box {
    position: relative;
    z-index: 10;
    background: var(--glass-thick);
    border-radius: 40px;
    padding: 40px 25px; /* Better spacing for mobile */
    
    /* THE MAGIC: A triple-layered shadow that acts as the glow */
    /* Layer 1: The crisp edge */
    /* Layer 2: The inner warmth */
    /* Layer 3: The wide halo */
    box-shadow: 
        0 0 0 1.5px rgba(181, 141, 63, 0.8), 
        0 0 20px rgba(181, 141, 63, 0.4),
        0 0 50px rgba(181, 141, 63, 0.2);
        
    border: none !important; /* We use the shadow as the border now */
    
    /* Performance boost for mobile */
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
}

/* Remove the old ::before so it doesn't conflict */
#contact::before {
    display: none !important;
}

/* PULSE FIX FOR MOBILE */
.next-step-card-box {
    animation: mobile-pulse 3s infinite ease-in-out;
    -webkit-animation: mobile-pulse 3s infinite ease-in-out;
}

@keyframes mobile-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(181, 141, 63, 0.3); }
    50% { box-shadow: 0 0 30px rgba(181, 141, 63, 0.9); }
}