/* ===================================
   Monster Finance - Custom Styles
   Brand Color Override
   =================================== */

/* === Brand Color Variables === */
:root {
    /* Monster Finance Brand Colors */
    --mf-teal-primary: #6dcacb;
    --mf-teal-light: #9edae0;
    --mf-teal-dark: #5ab9ba;
    --mf-dark: #18181a;
    --mf-dark-soft: #2a2a2c;
}

/* === Override Bootstrap Primary Colors === */
.bg-primary {
    background-color: var(--mf-teal-primary) !important;
}

.text-primary {
    color: var(--mf-teal-primary) !important;
}

.btn-primary {
    background-color: var(--mf-teal-primary);
    border-color: var(--mf-teal-primary);
    color: var(--mf-dark);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--mf-teal-dark);
    border-color: var(--mf-teal-dark);
    color: var(--mf-dark);
}

.btn-outline-primary {
    color: var(--mf-teal-primary);
    border-color: var(--mf-teal-primary);
}

.btn-outline-primary:hover {
    background-color: var(--mf-teal-primary);
    border-color: var(--mf-teal-primary);
    color: var(--mf-dark);
}

/* === Link Colors === */
a {
    color: var(--mf-teal-dark);
}

a:hover {
    color: var(--mf-teal-primary);
}

/* === Navbar === */
.navbar-brand img {
    max-height: 55px;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mf-dark);
    letter-spacing: -0.5px;
}

.footer-brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--mf-teal-primary) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--mf-teal-primary);
    color: var(--mf-dark);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(160deg, #0f0f12 0%, #1a1a1f 40%, #252530 70%, #1e1e25 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(109, 202, 203, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(109, 202, 203, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-monster {
    position: absolute;
    pointer-events: none;
}

.monster-1 {
    top: -15px;
    left: 3%;
    width: 200px;
    transform: rotate(-15deg);
}

.monster-1 g {
    stroke: rgba(255,255,255,0.12);
}

.monster-2 {
    top: 15%;
    right: -30px;
    width: 180px;
    transform: rotate(20deg);
}

.monster-2 g {
    stroke: rgba(255,255,255,0.1);
}

.monster-3 {
    bottom: -30px;
    left: 25%;
    width: 300px;
    transform: rotate(-5deg);
}

.monster-3 g {
    stroke: rgba(255,255,255,0.08);
}

/* Section monster decorations */
.section-monster {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

.section-monster g {
    stroke: currentColor;
}

/* Lighter backgrounds need more visible monsters */
.bg-light .section-monster,
.py-5:not(.hero-section):not([class*="bg-"]) .section-monster {
    opacity: 0.2;
}

/* Stats section (teal bg) */
.stats-section .section-monster {
    opacity: 0.12;
}

/* CTA section */
.cta-section .section-monster {
    opacity: 0.1;
}

/* Brand monster icon */
.brand-monster {
    width: 28px;
    height: 28px;
    margin-left: 6px;
    vertical-align: middle;
}

.footer-brand-monster {
    width: 32px;
    height: 32px;
    margin-left: 8px;
    vertical-align: middle;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(109, 202, 203, 0.15);
    color: var(--mf-teal-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--mf-teal-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.hero-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-grid-item:hover img {
    transform: scale(1.05);
}

/* === Stats Section === */
.stats-section {
    background-color: var(--mf-teal-primary);
    padding: 40px 0;
}

.stat-item {
    text-align: center;
    color: var(--mf-dark);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* === Section Headers === */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mf-dark);
    margin-bottom: 16px;
}

.section-title .text-teal {
    color: var(--mf-teal-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* === Service Cards === */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e8eaed;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(24, 24, 26, 0.1);
    border-color: var(--mf-teal-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(109, 202, 203, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--mf-teal-primary);
    font-size: 28px;
}

.service-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mf-teal-primary);
    margin-bottom: 8px;
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mf-dark);
    margin-bottom: 12px;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mf-dark);
    font-weight: 600;
    transition: all 0.2s;
}

.service-link:hover {
    color: var(--mf-teal-primary);
    gap: 12px;
}

/* === About Section === */
.about-section {
    padding: 100px 0;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(24, 24, 26, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* === Why Choose Us === */
.why-section {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    background-color: var(--mf-teal-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mf-dark);
    flex-shrink: 0;
}

.benefit-text {
    font-size: 1rem;
    color: var(--mf-dark);
}

/* === Testimonials === */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(24, 24, 26, 0.06);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--mf-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--mf-teal-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--mf-dark);
    font-size: 1.2rem;
}

.author-name {
    font-weight: 600;
    color: var(--mf-dark);
}

.author-title {
    font-size: 0.9rem;
    color: #6b7280;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--mf-teal-primary) 0%, var(--mf-teal-light) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mf-dark);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--mf-dark);
    opacity: 0.9;
    margin-bottom: 32px;
}

.btn-dark {
    background-color: var(--mf-dark);
    border-color: var(--mf-dark);
    color: #fff;
}

.btn-dark:hover {
    background-color: var(--mf-dark-soft);
    border-color: var(--mf-dark-soft);
    color: #fff;
}

/* === Footer === */
.footer-section {
    background-color: var(--mf-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-section h5 {
    color: var(--mf-teal-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--mf-teal-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--mf-teal-primary);
    color: var(--mf-dark);
}

/* === Contact Page === */
.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    text-align: center;
    border: 1px solid #e8eaed;
    transition: all 0.3s;
}

.contact-info-card:hover {
    border-color: var(--mf-teal-primary);
    box-shadow: 0 10px 30px rgba(109, 202, 203, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(109, 202, 203, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--mf-teal-primary);
    font-size: 24px;
}

/* === Form Styles === */
.form-control:focus {
    border-color: var(--mf-teal-primary);
    box-shadow: 0 0 0 0.2rem rgba(109, 202, 203, 0.25);
}

/* === Utilities === */
.rounded-4 {
    border-radius: 8px !important;
}

.text-teal {
    color: var(--mf-teal-primary) !important;
}

.bg-teal {
    background-color: var(--mf-teal-primary) !important;
}

.bg-teal-light {
    background-color: rgba(109, 202, 203, 0.1) !important;
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* === Calculator Pages === */
.calculator-container {
    max-width: 100%;
    overflow-x: auto;
}

.calculator-container iframe {
    width: 100%;
    border: none;
    display: block;
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-section .col-6 {
        margin-bottom: 20px;
    }

    /* Calculator: remove side padding on mobile per VisionAbacus guidelines */
    .calculator-container {
        margin-left: -12px;
        margin-right: -12px;
    }
}
