/* ============================================
   OWC Services Ltd - Main Stylesheet
   HR & Immigration Services
   ============================================ */

/* CSS Custom Properties */
:root {
    --primary: #216EE6;
    --primary-dark: #1864DB;
    --primary-light: #E8F4FD;
    --accent: #FF6B35;
    --accent-hover: #e85a25;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-500: #6c757d;
    --gray-800: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-primary: 'Jost', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ============================================
   NAVBAR
   ============================================ */
#mainNavbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 12px 0;
    transition: var(--transition);
    box-shadow: none;
}

#mainNavbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    background: rgba(33, 110, 230, 0.97);
    backdrop-filter: blur(10px);
}

.navbar-brand { font-weight: 700; letter-spacing: -0.5px; }

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

.btn-warning {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    font-weight: 600;
}

.btn-warning:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #2c1810 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(33,110,230,0.85), rgba(24,100,219,0.7));
    z-index: 0;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    line-height: 1.8;
}

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

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 40px;
    color: white;
    text-align: center;
    max-width: 320px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-padding { padding: 80px 0; }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.bg-primary-soft {
    background-color: var(--primary-light) !important;
}

.badge.bg-primary-soft {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 120px 0 50px;
    color: white;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
}

.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), #fff0ea);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), #e85a25);
    color: white;
    transform: scale(1.05);
}

/* Category Tabs */
.nav-pills .nav-link {
    color: var(--gray-500);
    font-weight: 500;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   HOW IT WORKS - STEPS
   ============================================ */
.step-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    color: var(--accent);
    margin-top: 10px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--accent) 0%, #e85a25 100%);
    padding: 60px 0;
    color: white;
}

.stat-item { padding: 20px; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* ============================================
   CTA BOX
   ============================================ */
.cta-box {
    background: white;
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
}

/* ============================================
   TRACKING TIMELINE
   ============================================ */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 20px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--gray-200);
}

.timeline-content {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================
   CARDS & FORMS
   ============================================ */
.card {
    border-radius: var(--radius);
    overflow: hidden;
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 110, 230, 0.15);
}

.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.2px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 110, 230, 0.4);
}

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

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

.requirement-list { list-style: none; padding: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-brand { color: white; }

.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 5px; }

.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}
.footer-contact i { color: var(--primary); width: 20px; }

.social-links a {
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-links a:hover { color: var(--primary); }

/* ============================================
   BADGE COLORS
   ============================================ */
.badge.bg-info { background-color: var(--info) !important; }
.badge.bg-warning { background-color: var(--warning) !important; color: #333 !important; }
.badge.bg-primary { background-color: var(--primary) !important; }
.badge.bg-success { background-color: var(--success) !important; }
.badge.bg-danger { background-color: var(--danger) !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { min-height: 65vh; padding-top: 90px; padding-bottom: 40px; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    .navbar-collapse {
        background: var(--primary);
        border-radius: var(--radius-sm);
        padding: 15px;
        margin-top: 10px;
    }
    .page-header { padding: 100px 0 40px; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.75rem; line-height: 1.25; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-section { padding-top: 85px; padding-bottom: 40px; min-height: auto; }
    .hero-section .btn-lg { padding: 10px 18px; font-size: 0.95rem; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.9rem; }
    .stat-number { font-size: 1.8rem; }
    .stats-section { padding: 40px 0; }
    .page-header { padding: 90px 0 25px; }
    .page-header h1 { font-size: 1.5rem; }
    .cta-box { padding: 30px 20px; }
    .cta-box h2 { font-size: 1.4rem; }
    .service-card { padding: 20px; }
    .service-card h5 { font-size: 1rem; }
    .service-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .step-card { padding: 25px 15px; }
    #mainNavbar { padding: 8px 0; }
    .navbar-brand img { height: 36px !important; }
    .navbar-brand .fs-5 { font-size: 1rem !important; }
    .footer-section { padding: 40px 0 20px; }
    .review-card { padding: 18px; }
}

@media (max-width: 575px) {
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-section { padding-top: 75px; padding-bottom: 30px; }
    .hero-section .d-flex { flex-direction: column; }
    .hero-section .btn-lg { width: 100%; }
    .section-padding { padding: 30px 0; }
    .section-title { font-size: 1.3rem; }
    .page-header { padding: 80px 0 20px; }
    .page-header h1 { font-size: 1.3rem; }
    .cta-box { padding: 25px 15px; }
    .cta-box h2 { font-size: 1.2rem; }
    .stats-section { padding: 30px 0; }
    .stat-number { font-size: 1.6rem; }
    .stat-item i { font-size: 1.5rem !important; }
    .category-tab { font-size: 0.85rem; padding: 6px 12px; }
    .service-card { padding: 18px; }
    .service-card .d-flex.flex-wrap { flex-direction: column; }
    .service-card .d-flex.flex-wrap .btn { width: 100%; }
    .navbar-brand .fs-5 { font-size: 0.95rem !important; }
    .navbar-brand small { display: none !important; }
    .footer-brand img { height: 42px !important; }
}

/* Floating social buttons - smaller on mobile */
@media (max-width: 767px) {
    .floating-social { right: 12px !important; bottom: 12px !important; gap: 8px !important; }
    .floating-btn { width: 42px !important; height: 42px !important; font-size: 1.1rem !important; }
}

/* Reduce large Bootstrap paddings on mobile */
@media (max-width: 767px) {
    .card-body.p-5, .card-body.p-4 { padding: 1.25rem !important; }
    .p-5 { padding: 1.5rem !important; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .display-1 { font-size: 3.5rem !important; }
}

/* Tables on mobile should scroll smoothly */
@media (max-width: 767px) {
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table { font-size: 0.85rem; }
    .table th, .table td { padding: 0.5rem; }
}

/* ============================================
   TOASTR OVERRIDES
   ============================================ */
#toast-container > .toast-success { background-color: var(--success); }
#toast-container > .toast-error { background-color: var(--danger); }
#toast-container > .toast-info { background-color: var(--primary); }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
