/* ==========================================================================
   TRINITY CAPITAL & PROTECTION ADVISORS - MASTER STYLESHEET
   ==========================================================================
   TABLE OF CONTENTS:
   00. CSS Variables & Design Tokens (:root)
   01. Base Resets & Global Typography (*, html, body)
   02. Utility Classes & Shared Buttons (.btn, .text-center)
   03. SECTION 01: Global Header & Mobile Navigation Drawer
   04. SECTION 02: Hero Fold, Landing Intro Layer, & New Logo Reveal
   05. SECTION 03: Trust Bar & Banking Partners Infinite Marquee
   06. SECTION 04: Core Advisory Services Overview ("Let's Build a Brighter Tomorrow")
   07. SECTION 05: All Loan Solutions Under One Roof (Grid & Cards)
   08. SECTION 06: Protection That Actually Protects (Insurance Flex Cards)
   09. SECTION 07: Grow Your Wealth Systematically (Investment Flex Cards)
   10. SECTION 08: Why Choose Trinity (Value Proposition & USPs)
   11. SECTION 09: The Person Behind Trinity (Founder Profile & Credentials)
   12. SECTION 10: What Our Clients Say (Testimonials Marquee & Review Modal)
   13. SECTION 11: Interactive EMI Loan Calculator
   14. SECTION 12: Consultation Inquiry Form (On-Page, Radio Pills, & Modal)
   15. Global Footer & Social Connectivity
   16. Multi-Device Responsiveness System (Tablets <= 992px, Mobile <= 768px, Small <= 480px)
   17. IntersectionObserver Scroll Animations
   18. Final Brand Box Color System (Row 2: Soft Pearl Blue #f0f4fa)
   ========================================================================== */

:root {
    /* Color Palette */
    --clr-dark: #0f172a;
    --clr-dark-light: #1e293b;
    --clr-light: #ffffff;
    --clr-gray: #f8fafc;
    --clr-gray-border: #e2e8f0;
    --clr-primary: #1d4ed8;
    --clr-primary-dark: #1e3a8a;
    --clr-accent: #f59e0b; /* Gold/Amber */
    --clr-text-main: #334155;
    --clr-text-light: #64748b;
    --clr-whatsapp: #25d366;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --container-max: 1200px;
    --section-padding: 80px 0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(29, 78, 216, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents fixed header from covering anchor links */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.bg-gray { background-color: var(--clr-gray); }
.bg-highlight-warm { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.bg-highlight-blue { background-color: var(--clr-primary-dark); }
.bg-primary-dark { background-color: var(--clr-primary-dark); }
.text-white { color: var(--clr-light) !important; }
.text-light-gray { color: #cbd5e1; }
.highlight { color: var(--clr-accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}
.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-light);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 2px solid var(--clr-gray-border);
}
.btn-outline:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}
.btn-whatsapp {
    background-color: var(--clr-whatsapp);
    color: var(--clr-light);
}
.btn-whatsapp:hover {
    background-color: #1ebe57;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}
.btn-block {
    width: 100%;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-gray-border);
    transition: all 0.3s ease;
}
.bg-light-blue {
    background-color: #f0f9ff !important; /* Very subtle, airy blue */
}
#main-header.scrolled-dark {
    background: rgba(15, 23, 42, 0.9); /* Original dark slate/midnight blue */
    border-bottom-color: rgba(255,255,255,0.1);
    color: white;
}
#main-header.scrolled-dark .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.3);
}
#main-header.scrolled-dark nav a {
    color: #e2e8f0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 2px;
    box-shadow: 0 0 6px rgba(29, 78, 216, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-logo:hover {
    transform: scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.55);
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.desktop-nav {
    display: flex;
    gap: 30px;
}
.desktop-nav a {
    font-weight: 500;
    transition: color 0.3s;
}
.desktop-nav a:hover {
    color: var(--clr-primary);
}
.header-actions {
    display: flex;
    gap: 15px;
}

/* Sections Base */
.light-section, .dark-section {
    padding: var(--section-padding);
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.5rem;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

/* Hero Section (Dark) */
#hero {
    position: relative;
    background-color: #000000; /* Pure black for start */
    padding: 0;
    color: var(--clr-light);
    overflow: hidden;
}
.hero-pin-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0; /* starts hidden */
}
#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.8) 70%, #000000 100%);
    pointer-events: none;
}
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding-top: 80px; /* offset header */
}

/* Text Layers */
.hero-bg-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}
.hero-initial-text {
    position: absolute;
    font-size: 5vw;
    font-weight: 800;
    letter-spacing: -2px;
    max-width: 90%;
    text-align: center;
}
.hero-flash-text {
    position: absolute;
    font-size: 4vw;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 0; /* hidden initially */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}
#flash-loans {
    left: 10%;
    top: 30%;
}
#flash-insurance {
    right: 10%;
    top: 50%;
}
#flash-investment {
    left: 15%;
    top: 70%;
}
.hero-final-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    opacity: 0; /* hidden initially */
}
.hero-final-text {
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: 800;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    margin: 0;
}
.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Trust Bar Background Override for Premium Contrast */
#trust-bar {
    background-color: #f1f5f9 !important; /* Richer cool gray to force contrast with white tiles */
}

/* Trust Bar */
.trust-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08); /* Deep, ultra-premium soft shadow */
    position: relative;
    z-index: 10;
    border: 1px solid rgba(15, 23, 42, 0.06); /* Extremely light slate border */
}
.trust-top {
    margin-top: 20px;
}
.trust-bottom {
    margin-top: 40px;
    max-width: 800px;
}
.trust-stat {
    text-align: center;
    flex: 1;
    min-width: 140px;
    background: #f0f4fa; /* Row 2 Final: Soft Pearl Blue */
    padding: 22px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    border: 1.5px solid #d8e2ee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trust-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.trust-stat h2, .trust-stat .counter {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 5px;
}
.trust-stat span {
    font-size: 2.5rem;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}
.trust-stat p {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-light);
}

/* Trust Bar Marquee */
.marquee-wrapper {
    margin-top: 40px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 16px 0;
    background: white;
    border-top: 1px solid var(--clr-gray-border);
    border-bottom: 1px solid var(--clr-gray-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.marquee {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
    will-change: transform;
}
.marquee:hover {
    animation-play-state: paused;
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: 45px;
    padding-right: 45px;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.bank-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
}
.bank-logo img {
    height: 48px;
    max-height: 48px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.bank-logo img:hover {
    transform: scale(1.15) translateZ(0);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services Overview */
#services {
    background: var(--clr-primary-dark);
    color: white;
    padding: 100px 0;
}
#services .section-header h2 {
    color: white;
}
#services .section-header h2 span {
    color: var(--clr-accent);
}
#services .section-header p {
    color: var(--clr-gray);
    font-size: 1.1rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    margin-top: 50px;
}
.overview-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    color: var(--clr-text-main);
    display: flex;
    flex-direction: column;
    cursor: pointer; /* Show pointer to indicate full clickability */
}
.overview-card .card-link::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10; /* Extends the link hit area to the full card */
}
.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--clr-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.overview-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.overview-card:hover::before {
    transform: scaleX(1);
}
.overview-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(29, 78, 216, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(29, 78, 216, 0.1);
    transition: all 0.4s ease;
}
.overview-card:hover .icon-wrapper {
    background: var(--clr-primary);
    transform: scale(1.1) rotate(5deg);
}
.overview-card .icon-wrapper i {
    font-size: 2.5rem;
    color: var(--clr-primary);
    transition: all 0.4s ease;
}
.overview-card:hover .icon-wrapper i {
    color: white;
}
.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--clr-primary-dark);
}
.overview-card p {
    color: var(--clr-text-light);
    line-height: 1.7;
    margin-bottom: 25px;
}
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    gap: 8px;
    color: var(--clr-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}
.card-link i {
    transition: transform 0.3s ease;
}
.card-link:hover {
    color: var(--clr-primary-dark);
}
.card-link:hover i {
    transform: translateX(5px);
}

/* Grid layout for Loans */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.grid-item {
    background: var(--clr-gray);
    padding: 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.grid-item:hover {
    background: white;
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-md);
    color: var(--clr-primary);
    transform: scale(1.02);
}
.grid-item i {
    font-size: 1.5rem;
    color: var(--clr-primary);
}
.bottom-strip {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-weight: 500;
    color: var(--clr-text-main);
    padding-top: 20px;
    border-top: 1px solid var(--clr-gray-border);
}
.bottom-strip span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bottom-strip i {
    color: var(--clr-whatsapp);
    font-size: 1.2rem;
}

/* Flex Grid for Insurance & Investments */
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}
.service-card {
    background: white;
    width: min(100%, 320px);
    max-width: 100%;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-primary);
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* USPs (Why Trinity) */
.highlight-statement {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.4), rgba(15, 36, 102, 0.6));
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.highlight-statement span {
    color: var(--clr-accent);
}

.usps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 30px;
}
.usp-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}
.usp-card:hover {
    background: rgba(255, 255, 255, 0.1);
}
.usp-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.usp-card h3 {
    color: white;
}
.usp-card p {
    color: #cbd5e1;
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force all 4 in one line on desktop */
    gap: 30px;
    max-width: var(--container-max); /* Use full container width */
    margin: 0 auto;
}
.step {
    display: flex;
    flex-direction: column; /* Stack number and content vertically */
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-primary);
    transition: transform 0.3s;
}
.step:hover {
    transform: translateY(-5px);
}
.step-number {
    width: 45px;
    height: 45px;
    background: var(--clr-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}
.step-content h3 {
    margin-bottom: 5px;
}

/* Founder */
.founder-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.founder-image {
    flex-shrink: 0;
}
.founder-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--clr-accent);
    box-shadow: var(--shadow-md);
}
.founder-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}
.founder-info .title {
    color: var(--clr-primary);
    font-weight: 600;
    margin-bottom: 20px;
}
.founder-info blockquote {
    font-size: 1.15rem;
    font-style: normal;
    font-weight: 500;
    color: #334155; /* A rich, dark slate grey (not pure black) */
    line-height: 1.6;
    border-left: 4px solid var(--clr-accent);
    padding-left: 20px;
    margin-bottom: 25px;
}
.founder-contact {
    display: flex;
    gap: 20px;
    font-weight: 500;
}
.founder-contact i {
    color: var(--clr-primary);
    margin-right: 5px;
}

/* Testimonials Marquee */
.testimonial-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0 40px 0;
    position: relative;
}
.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTestimonials 30s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.testimonial-track:hover {
    animation-play-state: paused;
}
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-gray-border);
    width: min(85vw, 400px);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}
@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}
.stars {
    color: var(--clr-accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--clr-gray-border);
    padding-top: 15px;
}
.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.client-info h4 {
    margin-bottom: 2px;
    font-size: 1.1rem;
}
.client-info span {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

/* ==========================================================================
   TESTIMONIAL FULL REVIEW MODAL POPUP
   ========================================================================== */
.review-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100001;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.review-modal-backdrop.is-open {
    display: block;
    opacity: 1;
}

.review-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: min(90vw, 560px);
    max-height: 85vh;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    z-index: 100002;
    padding: 35px 30px;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.review-modal.is-open {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.close-review-modal-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(15, 23, 42, 0.06);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.close-review-modal-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: scale(1.08);
}
.review-modal-content .stars {
    font-size: 1.5rem;
    color: var(--clr-accent);
    margin-bottom: 18px;
}
.modal-quote {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #1e293b;
    font-style: italic;
    margin-bottom: 25px;
}
.modal-client-info {
    border-top: 1px solid var(--clr-gray-border);
    padding-top: 18px;
}
.modal-client-info h4 {
    font-size: 1.15rem;
    color: #0f172a;
}
.modal-client-info span {
    color: #64748b;
    font-size: 0.95rem;
}

/* EMI Calculator */
.calc-wrapper {
    display: flex;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.calc-inputs {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.input-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 15px;
}
.editable-val {
    width: 120px;
    padding: 5px 10px;
    border: 1px solid var(--clr-gray-border);
    border-radius: 4px;
    font-size: 1.1rem;
    color: var(--clr-primary);
    font-weight: bold;
    text-align: right;
    background-color: var(--clr-light);
    outline: none;
}
.editable-val:focus {
    border-color: var(--clr-primary);
}
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    background: var(--clr-gray-border);
    border-radius: 4px;
    outline: none;
    touch-action: pan-x;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--clr-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(29,78,216,0.3);
}
.calc-results {
    flex: 1;
    background: var(--clr-primary-dark);
    color: white;
    padding: 30px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.calc-results h3 {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.calc-results h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--clr-accent);
    margin-bottom: 30px;
}
.result-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.result-details p {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Form */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--clr-text-main);
}
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--clr-gray-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.success-message {
    margin-top: 20px;
    padding: 15px;
    background: #dcfce7;
    color: #166534;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background: var(--clr-dark);
    color: #cbd5e1;
    padding-top: 80px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.brand-col {
    flex: 2;
}
.footer-logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.tagline {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--clr-accent);
}
.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}
.social-icons a:hover {
    background: var(--clr-primary);
}
.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a:hover {
    color: white;
}
.footer-bottom {
    background: #0b1120;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & TOGGLE STYLES
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: rgba(29, 78, 216, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
}
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.is-open {
    display: block;
    opacity: 1;
}

.mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: #0b1329;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) 20px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open {
    transform: translateX(0);
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}
.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
}
.mobile-drawer-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.25s ease;
}
.mobile-nav-link i {
    font-size: 1.25rem;
    color: var(--clr-primary);
    transition: transform 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(29, 78, 216, 0.15);
    color: #ffffff;
    transform: translateX(4px);
}
.mobile-nav-link:hover i {
    transform: scale(1.15);
}
.mobile-drawer-actions {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-drawer-btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    font-size: 0.95rem;
}

/* ==========================================================================
   COMPREHENSIVE MULTI-DEVICE RESPONSIVENESS SYSTEM
   Compatible with: iPhone, Android, iPad/Tablets, MacBook, Windows, Linux
   ========================================================================== */

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
    .header-container {
        height: 70px;
    }
    .desktop-nav {
        display: none !important;
    }
    .header-actions {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .logo {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    .header-logo {
        width: 42px;
        height: 42px;
        margin-right: 8px;
    }
    .founder-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
    .founder-img {
        width: 220px;
        height: 220px;
    }
    .founder-info blockquote {
        text-align: left;
        font-size: 1.05rem;
    }
    .founder-contact {
        justify-content: center;
        flex-wrap: wrap;
    }
    .calc-wrapper {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }
    .steps-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Smartphone Portrait & Landscape (<= 768px) */
@media (max-width: 768px) {
    .light-section, .dark-section {
        padding: 50px 0;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-header h2 {
        font-size: clamp(1.65rem, 5.5vw, 2.1rem);
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .container {
        padding: 0 16px;
    }
    
    /* Overview Cards - More Compact, Shorter & Centered 3rd Tile on Mobile */
    .overview-grid {
        gap: 14px !important;
        margin-top: 25px !important;
    }
    .overview-card {
        padding: 22px 16px !important;
        border-radius: var(--radius-md) !important;
    }
    /* Centering lone tile when in 2-column or wrapping layout */
    .overview-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        margin-inline: auto !important;
        width: 100% !important;
        max-width: 440px !important;
    }
    .overview-card .icon-wrapper {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 12px auto !important;
    }
    .overview-card .icon-wrapper i {
        font-size: 1.5rem !important;
    }
    .overview-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 6px !important;
    }
    .overview-card p {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    .overview-card .card-link {
        font-size: 0.9rem !important;
    }

    /* Hero Logo - Responsive to mobile screen ratio & covers mobile screen prominently */
    #hero-new-logo {
        width: 92vw !important;
        max-width: min(94vw, 560px) !important;
        max-height: min(70vh, 70dvh) !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Trust Bar */
    #trust-bar {
        padding-top: 40px !important;
    }
    .trust-container {
        padding: 20px 16px;
        gap: 15px;
    }
    .trust-top {
        margin-top: 10px;
    }
    .trust-stat {
        min-width: 42%;
        flex: 1 1 42%;
    }
    .trust-stat:last-child:nth-child(odd) {
        flex: 0 1 80% !important;
        max-width: 320px !important;
        margin-inline: auto !important;
    }
    .trust-stat h2, .trust-stat .counter, .trust-stat span {
        font-size: 1.85rem;
    }
    .trust-stat p {
        font-size: 0.8rem;
    }
    .marquee-wrapper {
        margin-top: 25px;
        padding: 12px 0;
    }
    .bank-logo img {
        height: 38px;
        max-height: 38px;
        max-width: 120px;
    }
    .trust-bottom {
        margin-top: 25px;
    }

    /* Loan Services - Always 2 Columns on Mobile Devices */
    #loans .grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
    }
    #loans .grid-item {
        padding: 12px 10px !important;
        font-size: 0.82rem !important;
        gap: 8px !important;
        min-height: 52px !important;
        border-radius: var(--radius-sm) !important;
        line-height: 1.25 !important;
    }
    #loans .grid-item i {
        font-size: 1.2rem !important;
        flex-shrink: 0 !important;
    }
    .bottom-strip {
        gap: 15px;
        font-size: 0.85rem;
        padding-top: 15px;
    }

    /* Insurance & Investments - Sleek 2-Column Grid on Mobile with Centered 5th Card */
    #insurance .flex-grid,
    #investments .flex-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 10px !important;
    }
    #insurance .service-card,
    #investments .service-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 10px !important;
        min-height: 98px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
    }
    #insurance .service-card h3,
    #investments .service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }
    #insurance .service-card p,
    #investments .service-card p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    /* When 5th card is alone on row 3, center it! */
    #insurance .service-card:last-child:nth-child(odd),
    #investments .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        width: 100% !important;
        max-width: 75% !important;
        margin-inline: auto !important;
    }

    /* USPs (Why Trinity) */
    .highlight-statement {
        font-size: 1.05rem;
        padding: 10px 16px;
        margin-top: 10px;
    }
    .usps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .usp-card {
        padding: 20px 16px;
    }

    /* Testimonials */
    .testimonial-card {
        width: min(85vw, 340px);
        padding: 22px 18px;
    }
    .testimonial-card p {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    /* EMI Calculator */
    .calc-inputs {
        gap: 20px;
    }
    .input-group label {
        font-size: 0.95rem;
    }
    .calc-results {
        padding: 22px 16px;
    }
    .calc-results h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    /* Inquiry Form & iOS Zoom Prevention with Generous Bottom Margin */
    .form-container {
        padding: 25px 18px 45px 18px !important;
        margin: 0 auto !important;
    }
    .form-container .btn-submit {
        margin-bottom: 25px !important;
    }
    #contact.is-modal .form-container {
        padding-bottom: 40px !important;
        margin-bottom: 25px !important;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px !important; /* CRITICAL: Prevents iOS Safari from auto-zooming on focus */
        padding: 12px 14px;
    }
    .btn-block {
        width: 100%;
    }

    /* Footer */
    .main-footer {
        padding-top: 50px;
    }
    .footer-top {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }
    .footer-col {
        min-width: 100%;
    }
    .footer-bottom {
        text-align: center;
        gap: 10px;
        padding: 18px 12px;
        font-size: 0.85rem;
    }
}

/* Small Smartphone Displays (<= 480px, e.g. iPhone SE, smaller Androids) */
@media (max-width: 480px) {
    #hero-new-logo {
        width: 94vw !important;
        max-width: 95vw !important;
        max-height: min(74vh, 74dvh) !important;
        height: auto !important;
    }
    .container {
        padding: 0 12px;
    }
    .header-container {
        padding: 0 12px;
    }
    .logo {
        font-size: 0.82rem;
    }
    .header-logo {
        width: 36px;
        height: 36px;
        margin-right: 6px;
    }
    .overview-card {
        padding: 18px 14px !important;
    }
    /* Loan Services - Guaranteed 2 Columns across all small phones */
    #loans .grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    #loans .grid-item {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
        min-height: 48px !important;
    }
    .trust-stat {
        min-width: 45%;
        flex: 1 1 45%;
    }
    .trust-stat h2, .trust-stat .counter, .trust-stat span {
        font-size: 1.6rem;
    }
    .editable-val {
        width: 90px;
        font-size: 0.95rem;
    }
    .btn-lg {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Extra Small Displays (<= 350px, e.g. JioPhone or ultra-compact screens) - Fallback to 1-Column List */
@media (max-width: 350px) {
    #insurance .flex-grid,
    #investments .flex-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    #insurance .service-card:last-child:nth-child(odd),
    #investments .service-card:last-child:nth-child(odd) {
        max-width: 100% !important;
    }
}

/* -------------------------------------
   Scroll Animations (IntersectionObserver)
-------------------------------------- */
.scroll-animate {
    opacity: 0;
}
.scroll-animate.visible {
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate.slide-left.visible {
    animation: slideInLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.scroll-animate.slide-right.visible {
    animation: slideInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Radio Pills */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.radio-pill {
    background: var(--clr-gray);
    border: 1.5px solid var(--clr-gray-border);
    border-radius: 20px;
    padding: 10px 20px;
    color: var(--clr-text-main);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    user-select: none;
}
.radio-pill input[type="radio"] {
    display: none; /* Hide default radio */
}
.radio-pill:hover {
    border-color: var(--clr-primary) !important;
    background: rgba(29, 78, 216, 0.08) !important;
    color: var(--clr-primary) !important;
}
.radio-pill.selected,
.radio-pill:has(input[type="radio"]:checked) {
    border-color: #16a34a !important; /* Green highlight on selection */
    background: #e8f7ed !important; /* Soft light green background */
    color: #15803d !important; /* Dark green text */
    font-weight: 600 !important;
    box-shadow: 0 0 12px rgba(22, 163, 74, 0.28) !important;
}
.radio-pill.selected:hover,
.radio-pill:has(input[type="radio"]:checked):hover {
    border-color: var(--clr-primary) !important; /* Hover in blue */
    background: rgba(29, 78, 216, 0.08) !important;
    color: var(--clr-primary) !important;
    box-shadow: 0 0 12px rgba(29, 78, 216, 0.25) !important;
}

/* Form Modal Styles */
#contact.is-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    padding: 20px;
}
#contact.is-modal .form-container {
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
}
#contact.is-modal .close-modal-btn {
    display: block !important;
    position: fixed;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 2.5rem;
    z-index: 10000;
}
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
.close-modal-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}
.loan-card, .insurance-card, .investment-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.loan-card:hover, .insurance-card:hover, .investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.highlight-statement .highlight-white {
    color: #ffffff; /* Pure Bright White */
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); /* Subtle white glow for emphasis */
}

/* Simple Hero Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
/* End of style.css */

/* Hero Scroll Prompt */
.hero-scroll-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s ease;
    animation: heroBounce 2s infinite ease-in-out;
}
.hero-scroll-prompt i {
    font-size: 1.2rem;
}
@keyframes heroBounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, 8px); }
    60% { transform: translate(-50%, 4px); }
}

/* ==========================================================================
   TEMPORARY BACKGROUND & COLOR ADJUSTMENTS (Requested by User)
   Easily modified or reverted on command.
   ========================================================================== */

/* 1. 40+ Bank Partners, 20+ NBFC Partners (#trust-bar): Changed from grayish to matching brand blue tint */
#trust-bar {
    background-color: #e8eef8 !important; /* Soft executive slate blue that matches Trinity branding */
}
#trust-bar .trust-container {
    background-color: #f8fafc; /* Replaced harsh white with soothing off-white/gray */
    border: 1px solid #cbd5e1;
}
#trust-bar .marquee-wrapper {
    background: #f8fafc; /* Replaced harsh white with soothing off-white/gray */
    border-color: #e2e8f0;
}

/* 2. Protection that actually protects you (#insurance): Slightly higher blue shade */
#insurance.bg-light-blue,
.bg-light-blue {
    background-color: #dbeafe !important; /* Higher, distinct sky-blue shade */
}

/* 3. The Person behind Trinity (#founder): More gray background */
#founder.bg-gray {
    background-color: #e2e8f0 !important; /* Clearly defined, rich slate gray */
}

/* 4. White color replacement: Eye-friendly soft gray instead of blinding pure white */
body {
    background-color: #f4f6f9; /* Soothing soft gray base */
}
#loans, #investments, #testimonials {
    background-color: #f4f6f9; /* Replaced harsh white background with soft gray */
}

/* ==========================================================================
   SECTION 18: FINAL BRAND BOX COLOR SYSTEM (Row 2 Selection: #f0f4fa)
   Applied universally across all interactive and service cards on the website.
   ========================================================================== */

/* 1. Trust Bar & Stats Configuration */
:root {
    /* Back-Background Options for Trust Section (#trust-bar):
       Option 1 (Default): #e8eef8 (Soft Executive Slate Blue)
       Option 2: #ffffff (Pure Minimalist White)
       Option 3: #f1f5f9 (Cool Platinum Light Gray)
       Option 4: #060d1e (Midnight Navy - Hero Match) */
    --trust-bar-bg: #e8eef8;
}

#trust-bar {
    background-color: var(--trust-bar-bg) !important;
}

#trust-bar .trust-container {
    background-color: #dce5f0 !important; /* Lighter soft slate gray frame - distinguishable & gentle */
    border: 1.5px solid #c5d1e0 !important;
    padding: 24px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

#trust-bar .marquee-wrapper {
    background: #ffffff !important; /* Bank logos marquee strip strictly pure white */
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* 2. Protection that actually protects you (#insurance): Slightly darker gray background */
#insurance.bg-light-blue,
#insurance,
.bg-light-blue {
    background-color: #e2e8f0 !important; /* Rich slate gray */
}

/* 3. The Person behind Trinity (#founder): Rich slate gray */
#founder.bg-gray {
    background-color: #e2e8f0 !important;
}

/* 3.1 Interactive EMI Calculator (#emi-calc): Slightly darker gray background */
#emi-calc,
#emi-calc.bg-gray {
    background-color: #e2e8f0 !important; /* Rich slate gray */
}

/* 4. Canvas background base */
body {
    background-color: #f4f6f9;
}
#loans, #investments, #testimonials {
    background-color: #f4f6f9;
}

/* 5. Universal Box Backgrounds (#f0f4fa - Row 2 Final Choice) */
.trust-stat,
.overview-card,
.grid-item,
.service-card,
.testimonial-card,
.calc-wrapper,
.form-container,
.founder-wrapper {
    background-color: #f0f4fa !important; /* Row 2 Final: Soft Pearl Blue */
    border: 1.5px solid #d8e2ee !important;
}

/* 5.1 Distinct Blue Border matching 'All loan solutions' across Insurance & Investments */
#loans .grid-item,
#insurance .service-card,
#investments .service-card {
    border: 1.5px solid #2563eb !important; /* Matching vibrant brand blue border */
}

#loans .grid-item:hover,
#insurance .service-card:hover,
#investments .service-card:hover {
    border-color: #1d4ed8 !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16) !important;
}

/* 6. Universal Box Hover Transitions */
.trust-stat:hover,
.overview-card:hover,
.grid-item:hover,
.service-card:hover,
.testimonial-card:hover {
    background-color: #e4edf8 !important; /* Luminous soft blue on hover */
    border-color: var(--clr-primary) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09) !important;
}

/* 7. Footer Link & Dial Pad Styling */
#call-or-whatsapp-btn {
    text-decoration: none !important;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col ul li a:hover {
    color: #60a5fa;
}


/* ==========================================================================
   PRODUCTION HARDENING: ACCESSIBILITY, REDUCED MOTION & RESILIENCE FALLBACKS
   ========================================================================== */

/* Initial Load Lock Class (Migrated from inline <style> to external CSS) */
body.is-loading {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Problem 21: Pure CSS-Only Fallback - Guarantees site unfreezes even if JS fails */
/* Pure CSS Fallbacks */
@keyframes bodyUnfreezeFallback {
    0%, 95% {
        overflow: hidden;
    }
    100% {
        overflow: visible;
    }
}

body.is-loading {
    animation: bodyUnfreezeFallback 2.4s ease 0.3s forwards;
}

/* Problem 27: Screen-Reader Only Accessible Heading */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Problem 32: High-Contrast Accessible Keyboard Focus */
:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.grid-item:focus-visible,
.service-card:focus-visible,
.overview-card:focus-visible,
.testimonial-card:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 3px !important;
}

/* Landing Intro Text */
#landing-text {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.85rem, 6.5vw, 4.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    max-width: 90vw !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
    text-shadow: none !important;
}

/* Problem 33: Reduced-Motion Support for Accessibility & Vestibular Comfort */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track,
    .testimonial-track {
        animation: none !important;
        transform: none !important;
    }
    #landing-intro-layer {
        display: none !important;
    }
    body.is-loading {
        overflow: visible !important;
        height: auto !important;
    }
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}
