/* Global Styles for Finsako Multi-Page Website */

/* CSS Variables - Design System (Enhanced) */
:root {
    /* Navigation */
    --nav-height: 72px;
    --nav-active-offset: 6px;

    /* Colors - Yellow/Blue Theme (Banky-inspired) */
    --primary: #1D63FF;
    --primary-dark: #1450E0;
    --primary-light: #4A7FFF;
    --accent: #FFCE32;
    --accent-dark: #E6B82E;

    /* Background Colors */
    --bg-primary: #ffffff;
    /* Pure white */
    --bg-secondary: #f3f4f6;
    /* Light gray for section contrast */
    --bg-tertiary: #FFF9E6;
    /* Very light yellow */
    --bg-dark: #1f2937;
    /* Darker blue-gray for footer */

    /* Text Colors */
    --text-primary: #111827;
    /* Near black */
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Borders & Shadows (Enhanced) */
    --border: #e5e7eb;
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(29, 99, 255, 0.2);
    --shadow-primary-glow: rgba(29, 99, 255, 0.25);
    /* Blue glow for hover */

    /* Spacing - Optimized (Reduced) */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.25rem;
    /* Reduced from 1.5rem */
    --spacing-2xl: 1.5rem;
    /* Reduced from 2rem */
    --spacing-3xl: 2rem;
    /* Reduced from 3rem */

    /* Border Radius (Enhanced) */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 2rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    /* Reduced from 16px */
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-size: 2.25rem;
    /* Reduced from 3rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.75rem;
    /* Reduced from 2rem */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 999;
    transition: top 0.3s ease-in-out;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
    top: 0;
}

/* Navigation Bar Styles */
nav {
    position: sticky;
    top: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: var(--bg-primary);
    box-shadow: 0 1px 10px var(--shadow-sm);
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: 0 4px 12px var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1150px;
    /* Reduced from 1300px */
    margin: 0 auto;
    padding: 0.75rem var(--spacing-lg);
    /* Reduced padding */
}

.logo {
    font-size: 1.5rem;
    /* Reduced from 1.75rem */
    font-weight: 900;
}

.text-primary {
    color: var(--primary);
}

.text-dark {
    color: var(--text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    /* Reduced gap */
}

.nav-links li a {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.18s ease, transform 0.18s ease;
    font-size: 0.9375rem;
    /* Slightly smaller nav links */
}

.nav-links li a:hover {
    transform: translateY(-3px);
    color: var(--primary);
}

.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    /* Reduced */
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1150px;
    /* Reduced from 1300px */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: 3.5rem 0;
    /* Reduced from 6rem */
}

/* Buttons (Enhanced) */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    /* Reduced from 0.8rem 2rem */
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.9375rem;
    /* Reduced from 1rem */
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1;
}

/* Focus state for accessibility */
.btn:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--shadow-lg);
    /* Reduced shadow */
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-lg);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 6px var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cards (Enhanced) */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    /* Reduced from 1.5rem */
    box-shadow: 0 4px 15px var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    /* Add subtle blue glow on hover */
    box-shadow: 0 8px 25px var(--shadow-md), 0 0 10px var(--shadow-primary-glow);
    border-color: var(--primary-light);
}

.card-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.card-disabled::after {
    content: 'Upcoming';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--warning);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Hero Section Specific Styles - Typography only, layout in enhancements.css */
.hero h1 {
    font-size: 2.75rem;
    /* Reduced from 3.5rem */
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    /* Reduced from 1.25rem */
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Trust Banner Section */
.trust-banner {
    background: var(--primary);
    color: white;
    padding: 1.5rem 0;
    /* Reduced from 2.5rem */
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    /* Reduced from 1.125rem */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.trust-item .icon {
    font-size: 1.25rem;
    /* Reduced */
    color: var(--accent);
    /* Use yellow accent for icons */
}

/* Tools Section */
.section-tools {
    background: var(--bg-secondary);
    /* Contrast background */
    padding-top: 3.5rem;
    /* Reduced */
    padding-bottom: 3.5rem;
}

/* Anchor offset fix for #tools section */
#tools,
#tools h2 {
    scroll-margin-top: calc(var(--nav-height) + 12px);
}


.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* Reduced min-width */
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    padding: 1.5rem 1.25rem;
    /* Reduced from 2.5rem 2rem */
    text-align: left;
}

.tool-card:hover {
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    margin-bottom: 0.75rem;
}

.tool-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    /* Reduced from 1.4rem */
    font-weight: 800;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    /* Reduced from 1rem */
    line-height: 1.5;
}

.tool-card a.btn-primary {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}


/* Features Grid */
.section-features {
    background: var(--bg-primary);
    /* Contrast with secondary background */
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.5rem;
    /* Reduced from 2rem */
    text-align: center;
}

.feature-card:hover {
    border-color: var(--accent);
    /* Hover effect with yellow glow */
    box-shadow: 0 8px 20px rgba(255, 206, 50, 0.3), 0 0 8px rgba(255, 206, 50, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    /* Subtle icon hover animation */
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-2deg);
}

.feature-card h3 {
    font-size: 1.125rem;
    /* Reduced from 1.25rem */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.875rem;
    /* Reduced */
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    /* Reduced */
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    /* Logo section wider */
    gap: var(--spacing-xl);
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: white;
    font-size: 1rem;
    /* Reduced */
    font-weight: 800;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    /* Reduced */
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-container {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        padding: 0.75rem 1rem;
        display: block;
        border-radius: var(--radius-md);
    }

    .nav-links li a:hover {
        background: var(--bg-secondary);
    }

    .menu-toggle {
        display: flex;
    }

    .tools-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero .btn {
        width: 100%;
        max-width: 320px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .trust-grid {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}