/* Custom CSS for tCapital */

:root {
    --primary-color: #0066cc;
    --secondary-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --gradient-secondary: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Typography Standards - Headings 26px, Body 16px minimum */
body {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 16px !important;
    line-height: 1.6;
    color: var(--dark-color);
    font-weight: 400;
    padding-top: 100px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Standardized heading sizes */
h1, .h1 {
    font-size: 30px !important;
}

h2, .h2 {
    font-size: 26px !important;
}

h3, .h3 {
    font-size: 24px !important;
}

h4, .h4 {
    font-size: 18px !important;
}

h5, .h5 {
    font-size: 17px !important;
}

h6, .h6 {
    font-size: 16px !important;
}

.display-4, .display-5, .display-6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Navigation - TargetGrid Style */
.navbar {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.fixed-top {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
    z-index: 1030;
}

/* Ensure navbar remains visible on scroll */
.navbar-light {
    background-color: #ffffff !important;
}

.navbar-light .navbar-nav .nav-link {
    color: #374151 !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #1f2937 !important;
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a !important;
}

.navbar-light .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-light .navbar-toggler:focus {
    box-shadow: none;
}

/* TargetGrid-style Navigation Links */
.navbar-nav .nav-link, 
.navbar .text-decoration-none {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
    color: #374151 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.navbar .text-decoration-none:hover {
    color: #1f2937 !important;
}

/* Spread navigation items */
.navbar-nav {
    flex-grow: 1;
    justify-content: space-evenly;
}

.navbar-nav .nav-item {
    margin: 0 0.5rem;
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-grow: 1;
        justify-content: center;
        gap: 2rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0 1rem;
    }
    
    .navbar-nav .nav-link {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* TargetGrid-style Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Dropdown Styling */
.dropdown-menu {
    font-family: 'Inter', sans-serif;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: #1f2937;
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Gradients */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* Hero Section */
.hero {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon-sm {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Cards */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

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

.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    padding: 2rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--box-shadow);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    margin-left: 1rem;
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Steps */
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-card {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

/* Newsletter Form */
.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

/* Client Logos */
.client-logo {
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    transform: scale(1.05);
}

/* Blog Styles */
.featured-post img {
    height: 200px;
    object-fit: cover;
}

.blog-post-card {
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-3px);
}

.author-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Utility Classes */
.object-cover {
    object-fit: cover;
}

.min-height-400 {
    min-height: 400px;
}

/* Responsive Design */
/* Tablet Landscape (1024px and down) */
@media (max-width: 1024px) {
    body {
        padding-top: 80px; /* Reduced padding for tablets */
    }
    
    .display-2 {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 2.8rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet Portrait (768px and down) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .display-2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    /* Hero section mobile optimization */
    section[style*="padding-top: 140px"] {
        padding-top: 80px !important;
        padding-bottom: 60px !important;
    }
    
    section[style*="padding: 120px 0"] {
        padding: 60px 0 !important;
    }
    
    /* Dashboard responsive improvements */
    .dashboard-sidebar-left {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        z-index: 1040;
        transition: left 0.3s ease;
        background: white !important;
        overflow-y: auto;
    }
    
    .dashboard-sidebar-left.show {
        left: 0;
    }
    
    .dashboard-main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-sidebar-right {
        margin-top: 2rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-toggler {
        margin-right: 0.5rem;
        padding: 0.5rem;
        border: none;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        border: none;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: 1px solid #e9ecef;
    }
    
    /* Mobile dropdown fixes */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        border: none;
        border-radius: 4px;
        box-shadow: none;
        background-color: #f8f9fa;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
        color: #495057;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
    }
    
    .step-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon, .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .team-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Card spacing for mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Button improvements for tablets */
    .btn-lg {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

/* Mobile Landscape (667px and down) */
@media (max-width: 667px) {
    .display-2 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Pricing cards stack on mobile landscape */
    .pricing-cards .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Portrait (576px and down) */
@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .display-2 {
        font-size: 1.5rem !important;
        line-height: 1.1;
    }
    
    .display-4 {
        font-size: 1.3rem !important;
    }
    
    .display-5 {
        font-size: 1.2rem !important;
    }
    
    /* Specific mobile header styling */
    h1.display-2 {
        font-size: 1.4rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    section[style*="padding-top: 140px"] {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }
    
    section[style*="padding: 120px 0"] {
        padding: 40px 0 !important;
    }
    
    section[style*="padding: 80px 0"] {
        padding: 40px 0 !important;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Newsletter form mobile */
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .input-group .btn {
        border-top-left-radius: 0;
        border-top-right-radius: 0.375rem;
        border-bottom-left-radius: 0.375rem;
    }
    
    .newsletter-form .input-group .form-control {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    /* Mobile card adjustments */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Dashboard mobile optimization */
    .dashboard-main-content {
        padding: 0.75rem;
    }
    
    /* Reduce margins on small screens */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Mobile typography adjustments */
    .container h1, .container h2, .container h3 {
        margin-bottom: 1rem;
    }
}

/* Small Mobile (375px and down) */
@media (max-width: 375px) {
    .display-2 {
        font-size: 1.3rem !important;
    }
    
    .display-4 {
        font-size: 1.1rem !important;
    }
    
    h1.display-2 {
        font-size: 1.2rem !important;
        line-height: 1.1;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.65rem 1.25rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Better table responsiveness */
    .table-responsive {
        border-radius: 8px;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Stack form elements on mobile */
    .form-row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Improve spacing for mobile cards */
    .card + .card {
        margin-top: 1rem;
    }
    
    /* Better mobile dropdown menus */
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: none;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        transition: background-color 0.2s ease;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f8f9fa;
        color: #495057;
    }
    
    /* Improve modal sizing on mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Horizontal scrolling for tables on small screens */
@media (max-width: 576px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
    }
    
    .table-responsive .table {
        margin-bottom: 0;
        font-size: 0.8rem;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 0.375rem;
    }
    
    /* Stack pricing cards */
    .pricing-cards .card {
        margin-bottom: 1.5rem;
    }
    
    /* Better hero section mobile layout */
    .hero .container .row > div {
        text-align: center;
    }
    
    .hero .container .row > div:first-child {
        text-align: left;
    }
}

/* Improve accessibility and touch targets */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    .btn:hover {
        background-color: initial;
        border-color: initial;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* Landscape orientation optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding-top: 50px;
    }
    
    section[style*="padding-top: 140px"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .hero {
        min-height: 90vh;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Modern Typography Enhancements */
.form-control, .form-select {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    border-radius: 0.5rem;
    letter-spacing: -0.01em;
}

.form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.dropdown-item {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.badge {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.lead {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.fw-bold {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

/* Table styling */
.table th {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.table td {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Modern text classes */
.text-modern {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.text-modern-bold {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-modern-light {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Blog content modern styling */
.blog-content {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Flash messages modern styling */
.flash-messages .alert {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Testimonial modern styling */
.testimonial-card {
    font-family: 'Poppins', sans-serif;
}

/* Team member modern styling */
.team-card {
    font-family: 'Poppins', sans-serif;
}

/* Step number modern styling */
.step-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}
