/* 
 * Baltic Vendor Management Website - ENHANCED UI/UX WITH ACCESSIBILITY & SECURITY
 * Sophisticated, modern design with WCAG AA compliant color contrast and comprehensive form handling
 * Color Palette: #003366 (primary), #4A5568 (secondary), #D69E2E (accent)
 * @version 2.0 - Security & Performance Enhanced
 */

/* ========================================
   RESET & NORMALIZATION
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #2D3748; /* Improved contrast from #333333 */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-padding-top: var(--header-height);
}

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */

:root {
    /* Colors - WCAG AA Compliant */
    --color-primary: #003366; /* Darker blue for better contrast */
    --color-primary-light: #004A99;
    --color-secondary: #4A5568; /* Improved contrast from #5E6A75 */
    --color-accent: #D69E2E; /* Improved contrast from #F0AD4E */
    --color-accent-dark: #B7791F;
    --color-text: #2D3748;
    --color-text-light: #4A5568;
    --color-background: #FAFBFC;
    --color-surface: rgba(255, 255, 255, 0.95);
    --color-border: #E2E8F0;
    --color-success: #38A169;
    --color-error: #E53E3E;
    --color-warning: #D69E2E;
    --color-info: #3182CE;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* 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);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    
    /* Performance & Animation Constants */
    --header-height: 80px;
    --scroll-threshold: 50px;
    --card-hover-scale: 1.02;
    --card-hover-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
    --icon-size-sm: 16px;
    --icon-size-md: 24px;
    --icon-size-lg: 32px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 51, 102, 0.1);
}

h2 {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.025em;
    text-shadow: 0 1px 3px rgba(0, 51, 102, 0.1);
}

h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-secondary);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

a:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ========================================
   ACCESSIBILITY & FOCUS MANAGEMENT
   ======================================== */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: #1A202C;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    z-index: 10000;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Focus styles for better accessibility */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #000000;
        --color-text: #000000;
        --color-accent: #FF6600;
        --color-background: #FFFFFF;
        --color-surface: #FFFFFF;
    }
    
    body {
        background: var(--color-background);
    }
    
    .btn {
        border: 2px solid var(--color-primary) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

@media (max-width: 768px) {
    .content-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-container:hover img {
    transform: scale(1.05);
}

/* ========================================
   HEADER STYLES
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
    box-shadow: 0 2px 20px rgba(0, 51, 102, 0.1);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 30px rgba(0, 51, 102, 0.15);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.header__logo img {
    height: 85px;
    width: auto;
    transition: var(--transition-base);
}

.header__logo:hover img {
    transform: scale(1.05);
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav__link {
    position: relative;
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
}

.nav__link:hover {
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.1), rgba(183, 121, 31, 0.1));
    color: var(--color-accent-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.nav__link--active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: #1A202C;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(214, 158, 46, 0.3);
}

/* Mobile Navigation Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    margin: 3px 0;
    transition: var(--transition-base);
    border-radius: 2px;
}

.nav__toggle:hover {
    background: rgba(0, 51, 102, 0.1);
}

.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(7px, -6px);
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

.language-switcher {
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xs);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.language-switcher__btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition-base);
    background: transparent;
}

.language-switcher__btn:hover {
    background: rgba(214, 158, 46, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    text-decoration: none;
}

.language-switcher__btn--active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: #1A202C;
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(214, 158, 46, 0.3);
    font-weight: 600;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-3xl) 0;
    margin-top: var(--header-height);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero--with-image {
    background: none;
    position: relative;
    overflow: hidden; /* Add this to contain background */
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    overflow: hidden; /* Add this */
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.2);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(74, 85, 104, 0.6) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
    letter-spacing: -0.02em;
}

.hero--with-image h1 {
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    opacity: 0.9;
}

.hero--with-image p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #1A202C;
    font-weight: 600;
    font-size: var(--font-size-lg);
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.25);
    transition: all var(--transition-base);
    transform: translateY(0);
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.4);
    text-decoration: none;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    background: var(--color-background); /* Ensure solid background */
    z-index: 10; /* Ensure it's above hero background */
}

/* OR, for better visual appeal, add this specific rule for the first section after hero */
.section:first-of-type {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 -10px 30px rgba(0, 51, 102, 0.08);
    border-top: 2px solid rgba(214, 158, 46, 0.1);
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.section--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}

.section--secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.section h2 {
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-3xl);
}

.section--primary h2 {
    color: white;
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.card {
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.card__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 8px 25px rgba(214, 158, 46, 0.3);
    transition: var(--transition-base);
}

.card:hover .card__icon {
    transform: scale(1.1) rotate(5deg);
}

.card__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.card__description {
    color: var(--color-text);
    line-height: 1.6;
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #718096 100%);
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.25);
}

.btn--accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #1A202C;
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.25);
    font-weight: 600;
}

.btn:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* ========================================
   FORM STYLES
   ======================================== */

.contact-form {
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: white;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Form validation states */
.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--color-success);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--color-error);
}

/* Error and help text */
.error-message {
    color: var(--color-error);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
    font-weight: 500;
    display: block;
    min-height: 1rem;
}

.help-text {
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* ========================================
   CONTACT COMPONENTS
   ======================================== */

.contact-item {
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-item address {
    font-style: normal;
    line-height: 1.6;
}

/* ========================================
   FAQ COMPONENTS
   ======================================== */

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--color-surface);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition-base);
    list-style: none;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.05), rgba(183, 121, 31, 0.05));
}

.faq-question:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.faq-icon {
    font-size: var(--font-size-xl);
    font-weight: 300;
    transition: var(--transition-base);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-text);
    line-height: 1.6;
    animation: fadeIn var(--transition-base) ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MAP PLACEHOLDER
   ======================================== */

.map-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    border: 2px dashed var(--color-border);
    color: var(--color-text-light);
    transition: var(--transition-base);
}

.map-placeholder:hover {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.05), rgba(183, 121, 31, 0.05));
}

/* ========================================
   TEAM MEMBER COMPONENTS
   ======================================== */

.team-member {
    text-align: center;
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-member__image {
    position: relative;
    margin-bottom: var(--spacing-lg);
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.team-member:hover .team-photo {
    transform: scale(1.1);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1A365D 100%);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__section h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.footer__section ul {
    list-style: none;
    padding: 0;
}

.footer__section ul li {
    margin-bottom: var(--spacing-sm);
}

/* Fix footer paragraph readability */
.footer__section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.footer__section a {
    color: rgba(255, 255, 255, 0.95);
    transition: var(--transition-base);
    font-weight: 400;
}

.footer__section a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 400;
}

/* ========================================
   MOBILE STYLES
   ======================================== */

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --spacing-3xl: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 999;
    }
    
    .nav__list--active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__link {
        padding: var(--spacing-md);
        font-size: var(--font-size-lg);
        border-radius: var(--radius-lg);
        text-align: center;
    }
    
    .language-switcher {
        margin-top: var(--spacing-lg);
        justify-content: center;
    }
    
    .hero {
        min-height: 60vh;
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .content-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .nav__toggle,
    .language-switcher,
    .hero__cta,
    .btn,
    .skip-link {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .hero {
        margin-top: 0;
        background: white !important;
    }
    
    .section--primary {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .card,
    .contact-item,
    .contact-form {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for frequently animated elements */
.card,
.btn,
.nav__link,
.hero__cta,
.team-member {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Optimize images for performance */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.hero__bg-image {
    loading: eager; /* Hero images should load immediately */
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */

@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-2px); 
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(2px); 
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ========================================
   NOTIFICATION SYSTEM STYLES
   ======================================== */

.notification {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification--success {
    background: linear-gradient(135deg, var(--color-success), #2F855A);
    color: white;
}

.notification--error {
    background: linear-gradient(135deg, var(--color-error), #C53030);
    color: white;
}

.notification--info {
    background: linear-gradient(135deg, var(--color-info), #2B6CB0);
    color: white;
} 

/* ========================================
   MINIMALIST ICON SYSTEM - COMPLETE
   ======================================== */

/* Base icon styling - updated */
.card__icon {
    width: 80px;
    height: 80px;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.1);
    transition: var(--transition-base);
    position: relative;
    border: 3px solid var(--color-primary);
    flex-shrink: 0;
}

.card:hover .card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 51, 102, 0.15);
    border-color: var(--color-accent-dark);
}

/* SERVICE ICONS */

/* Chart/Analytics Icon - for Data Analysis (📊) */
.card__icon--chart::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: 
        linear-gradient(var(--color-primary) 0%, var(--color-primary) 100%) 6px 20px / 6px 20px no-repeat,
        linear-gradient(var(--color-primary) 0%, var(--color-primary) 100%) 16px 10px / 6px 30px no-repeat,
        linear-gradient(var(--color-primary) 0%, var(--color-primary) 100%) 26px 15px / 6px 25px no-repeat,
        linear-gradient(var(--color-primary) 0%, var(--color-primary) 100%) 0px 37px / 40px 3px no-repeat;
}

/* Box/Package Icon - for Inventory (📦) */
.card__icon--box::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-primary);
    border-radius: 4px;
    background: transparent;
}

.card__icon--box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--color-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

/* People/Team Icon - for Vendor Supervision (👥) */
.card__icon--people::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    left: 20px;
    background: transparent;
}

.card__icon--people::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    right: 20px;
    background: transparent;
}

/* Target Icon - for Goals/Professionalism (🎯) */
.card__icon--target::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    background: transparent;
}

.card__icon--target::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-primary);
}

/* Handshake/Partnership Icon (🤝) */
.card__icon--handshake::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    left: 15px;
    background: transparent;
}

.card__icon--handshake::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    right: 15px;
    background: transparent;
}

.card__icon--handshake {
    background: 
        linear-gradient(90deg, transparent 30%, var(--color-primary) 30%, var(--color-primary) 70%, transparent 70%) center center / 100% 3px no-repeat;
}

/* Lightbulb/Innovation Icon (💡) */
.card__icon--lightbulb::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 30px;
    border: 3px solid var(--color-primary);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: transparent;
}

.card__icon--lightbulb::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 8px;
    border: 3px solid var(--color-primary);
    border-top: none;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
}

/* Growth/Results Icon (📈) */
.card__icon--growth::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: 
        linear-gradient(135deg, transparent 0%, transparent 45%, var(--color-primary) 45%, var(--color-primary) 55%, transparent 55%, transparent 100%) 0 0 / 100% 100% no-repeat;
}

.card__icon--growth::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid var(--color-primary);
    top: 12px;
    right: 12px;
    transform: rotate(45deg);
}

/* Globe/World Icon (🌍) */
.card__icon--globe::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    background: transparent;
}

.card__icon--globe::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 32px;
    background: var(--color-primary);
    left: 50%;
    transform: translateX(-50%);
}

.card__icon--globe {
    background: 
        linear-gradient(90deg, transparent 49%, var(--color-primary) 49%, var(--color-primary) 51%, transparent 51%) center center / 100% 100% no-repeat;
}

/* Lock/Security Icon (🔒) */
.card__icon--lock::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-primary);
    border-radius: 50% 50% 0 0;
    background: transparent;
    top: 18px;
}

.card__icon--lock::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 20px;
    border: 3px solid var(--color-primary);
    border-radius: 4px;
    background: transparent;
    bottom: 18px;
}

/* BENEFITS SECTION ICONS */

/* Briefcase Icon (💼) */
.benefit__icon--briefcase::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 24px;
    border: 3px solid var(--color-primary);
    border-radius: 4px;
    background: transparent;
}

.benefit__icon--briefcase::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 8px;
    border: 3px solid var(--color-primary);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: transparent;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Tools/Wrench Icon (🔧) */
.benefit__icon--tools::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 3px;
    transform: rotate(45deg);
}

.benefit__icon--tools::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    background: transparent;
    top: 18px;
    right: 18px;
}

/* CONTACT & UTILITY ICONS */

/* Message/Speech Icon (💬) */
.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.btn__icon--message::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
    top: 2px;
    background: transparent;
}

.btn__icon--message::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid currentColor;
    bottom: 2px;
    left: 6px;
}

/* Email Send Icon (📨) */
.btn__icon--email-send::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.btn__icon--email-send::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid currentColor;
    top: 2px;
    left: 4px;
}

/* Contact Icons Base */
.contact__icon--phone,
.contact__icon--email,
.contact__icon--location,
.contact__icon--map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

/* Phone Icon (📞) */
.contact__icon--phone::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
    transform: rotate(-30deg);
}

/* Email Icon (✉️) */
.contact__icon--email::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.contact__icon--email::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid currentColor;
    top: 2px;
    left: 4px;
}

/* Location Icon (📍) */
.contact__icon--location::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: transparent;
}

.contact__icon--location::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* Map Icon (🗺️) */
.contact__icon--map::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
}

.contact__icon--map::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: currentColor;
    top: 6px;
    left: 6px;
    border-radius: 1px;
    box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

/* Checkmark Icon (✓) */
.list__icon--check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    color: var(--color-accent);
}

.list__icon--check::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 0;
    left: 3px;
}

/* Experience List Items */
.experience-list-item {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Plus Icon (+) for FAQ */
.faq__icon--plus::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.faq__icon--plus::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 16px;
    background: currentColor;
    border-radius: 1px;
    left: 7px;
    top: -7px;
}

/* LANGUAGE FLAGS - Simplified geometric representations */
.lang__icon {
    display: inline-block;
    width: 20px;
    height: 14px;
    position: relative;
    margin-right: var(--spacing-xs);
    border-radius: 2px;
    overflow: hidden;
}

.lang__icon--estonia {
    background: linear-gradient(to bottom, #0072CE 33%, #000000 33%, #000000 66%, #FFFFFF 66%);
}

.lang__icon--england {
    background: #FFFFFF;
    position: relative;
}

.lang__icon--england::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #CE1124;
    top: 50%;
    transform: translateY(-50%);
}

.lang__icon--england::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: #CE1124;
    left: 50%;
    transform: translateX(-50%);
}



/* HOVER EFFECTS - Apply accent color on hover */
.card:hover [class*="card__icon--"]::before,
.card:hover [class*="card__icon--"]::after {
    border-color: var(--color-accent-dark);
    background-color: var(--color-accent-dark);
}

.card:hover .card__icon--chart::before {
    background: 
        linear-gradient(var(--color-accent-dark) 0%, var(--color-accent-dark) 100%) 6px 20px / 6px 20px no-repeat,
        linear-gradient(var(--color-accent-dark) 0%, var(--color-accent-dark) 100%) 16px 10px / 6px 30px no-repeat,
        linear-gradient(var(--color-accent-dark) 0%, var(--color-accent-dark) 100%) 26px 15px / 6px 25px no-repeat,
        linear-gradient(var(--color-accent-dark) 0%, var(--color-accent-dark) 100%) 0px 37px / 40px 3px no-repeat;
}

.card:hover .card__icon--handshake {
    background: 
        linear-gradient(90deg, transparent 30%, var(--color-accent-dark) 30%, var(--color-accent-dark) 70%, transparent 70%) center center / 100% 3px no-repeat;
}

.card:hover .card__icon--globe {
    background: 
        linear-gradient(90deg, transparent 49%, var(--color-accent-dark) 49%, var(--color-accent-dark) 51%, transparent 51%) center center / 100% 100% no-repeat;
}

/* Benefits icons with inline styles - special handling */
.benefit__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    border: none !important;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.benefit__icon:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)) !important;
    transform: scale(1.1);
}

.benefit__icon::before {
    color: white;
}

.benefit__icon::after {
    border-color: white;
    background-color: white;
}

/* ========================================
   ICON ALIGNMENT IMPROVEMENTS
   ======================================== */

/* Ensure all icons are properly aligned with text */
[class*="__icon"] {
    vertical-align: middle;
}

/* Improve button text and icon alignment */
.btn span {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Ensure contact headings with icons are properly aligned */
.contact-item h3 span[class*="contact__icon"] {
    margin-right: var(--spacing-sm);
}

/* Improve card title alignment with icons */
.card__title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

/* Ensure consistent spacing for icons in headings */
h1:has([class*="__icon"]),
h2:has([class*="__icon"]),
h3:has([class*="__icon"]),
h4:has([class*="__icon"]),
h5:has([class*="__icon"]),
h6:has([class*="__icon"]) {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
} 