/* ============================================
   Novafort Finance - Institutional Website
   Clean, Minimal, Professional Design
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Institutional Palette */
    --color-primary: #1a365d;
    --color-primary-dark: #0f1f36;
    --color-primary-light: #2c4a7c;
    --color-accent: #c9a227;
    --color-white: #ffffff;
    --color-grey-50: #f8f9fa;
    --color-grey-100: #f1f3f5;
    --color-grey-200: #e9ecef;
    --color-grey-300: #dee2e6;
    --color-grey-400: #adb5bd;
    --color-grey-500: #6c757d;
    --color-grey-600: #495057;
    --color-grey-700: #343a40;
    --color-grey-800: #212529;
    --color-grey-900: #1a1d20;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-grey-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-4);
}

.lead {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--color-grey-600);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Sections */
.section {
    padding: var(--space-24) 0;
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-grey-200);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-grey {
    background-color: var(--color-grey-50);
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-grey-400);
    margin-bottom: var(--space-4);
}

.section-dark .section-label {
    color: var(--color-grey-400);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-grey-200);
    transition: all var(--transition-base);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-grey-600);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-base);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--color-grey-50) 0%, var(--color-white) 100%);
    padding-top: 80px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: var(--space-6);
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-grey-500);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-grey-400);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-grey-400), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* About Section */
.about-content {
    max-width: 800px;
}

.about-text p {
    margin-bottom: var(--space-6);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.problem-card {
    text-align: center;
    padding: var(--space-8);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.problem-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    color: var(--color-white);
}

.problem-card h3 {
    font-size: var(--text-xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.problem-card p {
    font-size: var(--text-sm);
    color: var(--color-grey-400);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Solution Section */
.solution-intro {
    max-width: 700px;
    margin-bottom: var(--space-12);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.solution-card {
    padding: var(--space-8);
    background-color: var(--color-white);
    border: 1px solid var(--color-grey-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.solution-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.solution-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--space-4);
}

.solution-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.solution-card p {
    font-size: var(--text-sm);
    color: var(--color-grey-500);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Focus Section */
.focus-intro {
    font-size: var(--text-lg);
    color: var(--color-grey-600);
    margin-bottom: var(--space-10);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-6);
}

.focus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-6);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.focus-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.focus-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.focus-item span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-grey-700);
}

/* Vision Section */
.vision {
    background-color: var(--color-white);
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.vision-quote {
    position: relative;
    padding: var(--space-8) 0;
}

.vision-quote::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 120px;
    line-height: 1;
    color: var(--color-grey-200);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.vision-quote p {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-primary);
    margin-bottom: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-grey-400);
    margin-bottom: var(--space-1);
}

.contact-details a {
    font-size: var(--text-lg);
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.contact-details a:hover {
    color: var(--color-grey-300);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-grey-300);
}

.form-group input,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-grey-500);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--color-grey-900);
    color: var(--color-grey-400);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    text-align: center;
    margin-bottom: var(--space-12);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer-logo .logo-icon {
    width: 48px;
    height: 48px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-grey-500);
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-grey-800);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--color-grey-500);
    margin-bottom: 0;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .focus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        border-bottom: 1px solid var(--color-grey-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
    }
    
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .nav-toggle {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .section {
        padding: var(--space-8) 0;
    }
    
    body {
        color: #000;
    }
    
    h1, h2, h3, h4 {
        color: #000;
    }
}
