/* FMCom Theme - Custom Styles */
/* Bootstrap 5 is loaded via CDN in the layout */

:root {
    --primary-color: #09153D;
    --primary-dark: #050a1f;
    --primary-light: #0d1e52;
    --secondary-color: #EE1C47;
    --secondary-dark: #c01537;
    --secondary-light: #f24060;
    --inquiry-color: #FF823A;
    --inquiry-dark: #e66a1f;
    --inquiry-light: #ff9b5c;
    --success-color: #FF823A;
    --danger-color: #EE1C47;
    --warning-color: #FF823A;
    --info-color: #09153D;
    --gradient-start: #09153D;
    --gradient-end: #0d1e52;

    /* Bootstrap variable overrides */
    --bs-primary: #09153D;
    --bs-primary-rgb: 9, 21, 61;
    --bs-secondary: #EE1C47;
    --bs-secondary-rgb: 238, 28, 71;
    --bs-success: #FF823A;
    --bs-success-rgb: 255, 130, 58;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #676C7B;
    background-color: #FFF;
    line-height: 1.6;
}

/* ============================================
   HEADLINES - GRADIENT EFFECTS
   ============================================ */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f24060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Exception: White headings on dark backgrounds */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.profile-header h1,
.profile-header h2,
.contact-card h1,
.contact-card h2,
.contact-card h3,
.contact-card h4,
.contact-card h5,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Exception: Primary gradient for card titles */
.card-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1e52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HEADER NAVIGATION - CLEAN RESET
   ============================================ */

/* Default Header (All Pages) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    color: var(--secondary-color);
}

.nav-link {
    color: #475569 !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(9, 21, 61, 0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

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

/* ============================================
   HOME PAGE HEADER - SEAMLESS HERO GRADIENT
   ============================================ */

body.home-page .site-header {
    background: transparent;
    box-shadow: none;
    position: relative;
}

body.home-page .navbar-brand {
    color: white !important;
}

body.home-page .navbar-brand i {
    color: white;
}

body.home-page .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.home-page .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
}

body.home-page .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

body.home-page .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.home-page .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

body.home-page .btn-primary:hover {
    background-color: #d01239;
    border-color: #d01239;
}

body.home-page .dropdown-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.home-page .dropdown-toggle:hover {
    color: white !important;
}

/* Hero Section - Modern Design */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 60px 0 80px 0;
    position: relative;
    overflow: hidden;
}

/* Hero on home page - extends behind header */
.home-page .hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 75vh;
    margin-top: -80px;
}

.min-vh-75 {
    min-height: auto;
}

/* Hero Decorative Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary-color);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--inquiry-color);
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: #fff;
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
    }
    50% {
        transform: translateY(0) translateX(30px) scale(1);
    }
    75% {
        transform: translateY(20px) translateX(-10px) scale(0.9);
    }
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--inquiry-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.9);
}

.text-white-60 {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Stats */
.hero-stat {
    padding: 0;
}

/* Floating Cards */
.hero-visual {
    height: 500px;
    position: relative;
}

.floating-card {
    position: absolute;
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Central Icon */
.hero-central-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-circle {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    }
}

/* Responsive Hero */
@media (max-width: 991px) {
    .home-page .hero-section {
        padding: 60px 0 80px 0;
        min-height: auto;
    }

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

    .hero-shape {
        filter: blur(40px);
    }
}

@media (max-width: 768px) {
    .home-page .hero-section {
        padding: 50px 0 60px 0;
    }

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

/* Card Styles */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    background-color: #ffffff;
    overflow: hidden;
}

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

.card .card-title {
    color: #09153D;
    font-weight: 700;
    font-size: 1.125rem;
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(9, 21, 61, 0.3), 0 2px 4px -1px rgba(9, 21, 61, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(9, 21, 61, 0.4), 0 4px 6px -2px rgba(9, 21, 61, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(238, 28, 71, 0.3), 0 2px 4px -1px rgba(238, 28, 71, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(238, 28, 71, 0.4), 0 4px 6px -2px rgba(238, 28, 71, 0.3);
    color: white;
}

.btn-inquiry {
    background: linear-gradient(135deg, var(--inquiry-color) 0%, var(--inquiry-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(255, 130, 58, 0.3), 0 2px 4px -1px rgba(255, 130, 58, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-inquiry:hover {
    background: linear-gradient(135deg, var(--inquiry-dark) 0%, var(--inquiry-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 130, 58, 0.4), 0 4px 6px -2px rgba(255, 130, 58, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(9, 21, 61, 0.4);
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(238, 28, 71, 0.4);
}

.btn-outline-inquiry {
    border: 2px solid var(--inquiry-color);
    color: var(--inquiry-color);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-inquiry:hover {
    background-color: var(--inquiry-color);
    border-color: var(--inquiry-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 130, 58, 0.4);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(to bottom, #09153D 0%, #050a1f 100%);
    color: #cbd5e1;
    padding: 60px 0 20px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.site-footer h5 {
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.site-footer a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Company Listings */
.company-card {
    margin-bottom: 2rem;
    height: 100%;
    position: relative;
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 1rem 1rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover::after {
    opacity: 1;
}

.company-card .company-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 5px;
    flex-shrink: 0;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.company-card:hover .company-logo {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.company-card .company-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.company-card .company-name a {
    color: #09153D;
    transition: all 0.3s ease;
}

.company-card .company-name a:hover {
    color: var(--primary-color);
}

.company-card .company-rating {
    color: var(--warning-color);
    font-size: 1.05rem;
}

/* Search Section - Modern */
.search-section {
    margin-top: 0;
    position: relative;
    z-index: 20;
}

.home-page .search-section {
    margin-top: -40px;
}

.search-section .badge {
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-section .badge:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 21, 61, 0.2);
}

/* Additional Styles */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #78350f;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

/* Section Headings */
h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 0.75rem;
    border: 2px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(9, 21, 61, 0.1);
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Pagination Styles */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border: 2px solid #dee2e6;
    color: #676C7B;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background-color: white;
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover {
    background-color: rgba(9, 21, 61, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(9, 21, 61, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #cbd5e1;
    cursor: not-allowed;
}

.pagination .page-link i {
    font-size: 0.875rem;
}

/* ============================================
   UTILITY CLASSES - Inline Style Replacements
   ============================================ */

/* Z-Index Utilities */
.z-index-10 {
    z-index: 10;
}

.pos-relative-z10 {
    position: relative;
    z-index: 10;
}

/* Font Size Utilities */
.fs-1-25 {
    font-size: 1.25rem !important;
}

.fs-1-1 {
    font-size: 1.1rem !important;
}

/* Border Radius Utilities */
.rounded-20 {
    border-radius: 20px !important;
}

.rounded-12 {
    border-radius: 12px !important;
}

/* Text Shadow Utilities */
.text-shadow-lg {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Background Gradient Utilities */
.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.bg-gradient-warning-light {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe5b4 100%) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Image Utilities */
.img-80-cover {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.img-80-contain {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.object-fit-contain {
    object-fit: contain;
}

/* Max Width Utilities */
.mw-250 {
    max-width: 250px;
}

/* Color Utilities */
.text-inquiry-color {
    color: var(--inquiry-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.625rem;
        min-width: 35px;
        font-size: 0.875rem;
    }
}
