/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
    /* Colors - Refined with Finaxa red */
    --color-primary: #1a4d2e;
    --color-primary-light: #2d7a4a;
    --color-primary-dark: #0f3320;
    --color-accent: #c41e3a;
    --color-accent-light: #d63850;
    --color-accent-dark: #a01828;
    
    --color-bg: #fafaf8;
    --color-bg-alt: #ffffff;
    --color-surface: #f5f5f2;
    
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-muted: #757575;
    
    --color-border: #e0e0dc;
    
    /* Typography */
    --font-display: 'Crimson Pro', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-intro {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--space-sm) auto 0;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: white;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fafaf8;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--space-md);
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    background: var(--color-accent);
    color: white !important;
    border-radius: var(--radius-md);
}

.nav-cta:hover {
    background: var(--color-accent-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 77, 46, 0.03) 0%, 
        rgba(196, 30, 58, 0.03) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.05); }
}

.hero-container {
    padding: var(--space-xl) var(--space-md);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

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

.hero-title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-title-sub {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin: var(--space-md) 0 var(--space-lg);
    max-width: 650px;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===================================
   Features Section (with background)
   =================================== */
.features-section {
    position: relative;
    padding: var(--space-xl) 0;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.features-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature-card {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(196, 30, 58, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-accent-dark);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================
   Solution Section (with background)
   =================================== */
.solution-section {
    position: relative;
    padding: var(--space-xl) 0;
    background: var(--color-primary-dark);
    color: white;
    overflow: hidden;
}

.solution-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

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

.solution-section .section-tag {
    color: #f0a04b;
}

.solution-section h2,
.solution-section h3 {
    color: white;
}

.solution-section .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

.solution-content {
    margin-top: var(--space-xl);
}

.solution-feature {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    align-items: start;
}

.solution-feature.reverse {
    direction: rtl;
}

.solution-feature.reverse > * {
    direction: ltr;
}

.feature-visual {
    position: relative;
}

.feature-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: #f0a04b;
    opacity: 0.4;
    line-height: 1;
}

.feature-text h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.feature-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.service-card {
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

/* Different accent colors for each card */
.service-card:nth-child(1) { border-left-color: #c41e3a; }
.service-card:nth-child(2) { border-left-color: #d63850; }
.service-card:nth-child(3) { border-left-color: #e85568; }
.service-card:nth-child(4) { border-left-color: #f07280; }
.service-card:nth-child(5) { border-left-color: #f89098; }
.service-card:nth-child(6) { border-left-color: #f0a04b; }

.service-card:hover {
    border-left-width: 8px;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--color-accent);
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ===================================
   Trust Section (with background)
   =================================== */
.trust-section {
    position: relative;
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
    color: white;
    overflow: hidden;
}

.trust-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

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

.trust-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trust-text h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.trust-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.badge {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Partner Logo Carousel */
.partner-carousel {
    margin-top: var(--space-lg);
    overflow: hidden;
    position: relative;
    padding: var(--space-md) 0;
    background: rgba(255, 255, 255, 0.1);
}

.partner-track {
    display: flex;
    gap: 4rem;
    width: fit-content;
    will-change: transform;
}

.partner-track {
    animation: scroll-logos 40s linear infinite;
}

.partner-logo {
    height: 60px;
    width: 150px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
    background: white;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.partner-logo:hover {
    opacity: 1;
}

@keyframes scroll-logos {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ===================================
   Team Section
   =================================== */
.team-section {
    padding: var(--space-xl) 0;
    background: var(--color-bg-alt);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.team-card {
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

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

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-title {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.team-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.team-contact a {
    font-size: 0.9rem;
    color: var(--color-accent);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item strong {
    display: block;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--color-text-light);
    margin-bottom: 0;
}

.contact-form {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
}

.form-checkbox {
    margin-bottom: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--color-accent);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--color-accent-dark);
}

.form-message {
    padding: 1rem;
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-md) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Privacy Policy Page
   =================================== */
.privacy-section {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: var(--color-bg);
    min-height: 100vh;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.privacy-content h1 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
}

.last-updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.privacy-content h2 {
    color: var(--color-primary-dark);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.privacy-content p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.privacy-content ul {
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--color-accent);
}

.privacy-content a:hover {
    color: var(--color-accent-dark);
}

.privacy-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-lg);
        transition: left var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .solution-feature {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .solution-feature.reverse {
        direction: ltr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .features-grid,
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}
