/* Custom CSS for Mendana Capital Group */
/* Replicating TailwindCSS design with Bootstrap */

:root {
    --primary-blue: #1e3a8a;
    --primary-blue-dark: #1e40af;
    --primary-blue-darker: #1e293b;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #172554;
    --green-400: #4ade80;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Bootstrap color overrides */
.bg-primary {
    background-color: var(--blue-900) !important;
}

.text-primary {
    color: var(--blue-900) !important;
}

.text-info {
    color: var(--blue-200) !important;
}

.border-secondary {
    border-color: var(--blue-800) !important;
}

/* Header Styles */
header {
    z-index: 1050;
}

.navbar-brand {
    letter-spacing: -0.025em;
}

.nav-link {
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--blue-200) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, 
        rgba(30, 58, 138, 0.95), 
        rgba(30, 64, 175, 0.90), 
        rgba(30, 64, 175, 0.80));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.form-header {
    background-color: var(--blue-900);
    padding: 16px;
    text-align: center;
}

.form-body {
    padding: 20px;
}

.form-control, .form-select {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    background-color: white;
    border-color: var(--blue-900);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Hide all invalid-feedback by default in leadForm */
#leadForm .invalid-feedback {
    display: none !important;
    font-size: 11px;
    align-items: center;
    gap: 4px;
}

/* Only show when input has is-invalid class (controlled by JS) */
#leadForm .is-invalid ~ .invalid-feedback {
    display: flex !important;
}

/* Other forms keep normal Bootstrap behavior */
.invalid-feedback {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-upload-zone {
    border: 2px dashed rgba(30, 58, 138, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--gray-50);
}

.file-upload-zone:hover {
    background-color: var(--gray-100);
    border-color: rgba(30, 58, 138, 0.5);
}

.file-upload-zone.dragging {
    border-color: var(--blue-600);
    background-color: var(--blue-50);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-top: 8px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    background-color: var(--gray-50);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--gray-100);
}

/* Services Section */
.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 32px;
    transition: all 0.3s;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-8px);
}

/* Process Section */
.process-section {
    background-color: var(--blue-900);
    color: white;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--blue-700);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.step-icon {
    background-color: var(--blue-800);
    padding: 24px;
    border-radius: 50%;
    display: inline-flex;
    margin-bottom: 24px;
}

/* Social Proof Section */
.partner-card {
    height: 96px;
    background-color: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.3s;
    filter: grayscale(100%);
}

.partner-card:hover {
    filter: grayscale(0%);
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    background: linear-gradient(to bottom right, var(--blue-50), white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Benefits Section */
.benefit-section-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

.benefit-section-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-8px);
}

.benefit-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.benefit-section-card:hover .benefit-gradient {
    opacity: 1;
}

.benefit-gradient-1 {
    background: linear-gradient(to bottom right, var(--blue-600), var(--blue-700));
}

.benefit-gradient-2 {
    background: linear-gradient(to bottom right, var(--blue-700), var(--blue-800));
}

.benefit-gradient-3 {
    background: linear-gradient(to bottom right, var(--blue-800), var(--blue-900));
}

.benefit-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    color: white;
}

.benefit-decorative {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background-color: white;
    opacity: 0.05;
    border-radius: 50%;
}

/* About Page Styles */
.mission-hero {
    background: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.mission-divider {
    width: 96px;
    height: 4px;
    background-color: var(--blue-600);
    margin: 0 auto 32px;
    border-radius: 9999px;
}

.about-image-wrapper {
    position: relative;
}

.about-image-shadow {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 138, 0.1);
    transform: translate(16px, 16px);
    border-radius: 8px;
}

.about-image {
    position: relative;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.value-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.value-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: var(--blue-50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.approach-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--blue-900);
    height: 100%;
    transition: all 0.3s;
}

.approach-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.approach-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--blue-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.approach-card:hover .approach-icon-wrapper {
    transform: scale(1.1);
}

.trust-quote {
    background-color: var(--blue-50);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.quote-mark {
    font-size: 64px;
    color: var(--blue-200);
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: serif;
}

.cta-section {
    background-color: var(--blue-900);
    border-radius: 24px;
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn-primary {
    background-color: var(--blue-900);
    border-color: var(--blue-900);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--blue-800);
    border-color: var(--blue-800);
    transform: scale(1.01);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border: 2px solid var(--blue-200);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: rgba(30, 64, 175, 0.5);
    border-color: var(--blue-200);
}

/* Contact Page Icon Boxes */
.contact-icon-box {
    background-color: rgba(30, 58, 138, 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

/* Utilities */
.text-blue-200 {
    color: var(--blue-200);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-900 {
    color: var(--gray-900);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gradient-gray {
    background: linear-gradient(to bottom, var(--gray-50), white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .about-image {
        height: 300px;
    }
    
    .form-body {
        padding: 16px;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 16px;
    height: 16px;
}

/* Success message */
.success-message {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
