/* ===== CSS Variables ===== */
:root {
    /* Colors - Vibrant but professional */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E8F0FF;
    --accent: #00D4AA;
    --accent-2: #00838F;
    --dark: #0A0E27;
    --dark-blue: #1A2342;
    --gray-900: #1A1D29;
    --gray-700: #4A5568;
    --gray-500: #718096;
    --gray-300: #CBD5E0;
    --gray-100: #F7FAFC;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --space-xs: clamp(0.5rem, 1.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(1.5rem, 4vw, 2rem);
    --space-xl: clamp(2rem, 5vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 4rem);
    --space-3xl: clamp(4rem, 8vw, 6rem);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 100px;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Focus visible for better accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

/* ===== Loader ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    margin-bottom: 1rem;
}

.loader-track {
    fill: none;
    stroke: var(--gray-300);
    stroke-width: 3;
}

.loader-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: loader-spin 2s ease-in-out infinite;
}

@keyframes loader-spin {
    0% { stroke-dashoffset: 157; transform: rotate(0deg); }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -157; transform: rotate(360deg); }
}

.loader-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 36px;
}

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

.nav-link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-special {
    color: var(--primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    display: flex;
    align-items: center;
    margin-top:2px;
    color: var(--gray-700);
    font-weight: 500;
}

.nav-phone:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 500;
    transform: translateY(0);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* Navigation Enhancements */
.nav-logo {
    position: relative;
}

.nav-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    transition: all 0.3s ease;
    position: relative;
}

.nav-home:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-home svg {
    width: 20px;
    height: 20px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--gray-900);
}

.nav-home:hover .tooltip,
.nav-logo:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link-dropdown svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link-dropdown svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.dropdown-link {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: calc(var(--space-lg) + 4px);
}

.dropdown-link:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-link:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Medium screens - hide home icon when space gets tight */
@media (max-width: 1100px) {
    .nav-home {
        display: none;
    }
    
    .nav-menu {
        gap: var(--space-md);
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--accent-2);
    bottom: 20%;
    right: 10%;
    animation-delay: -15s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-30px, -50px) scale(1.1); }
    50% { transform: translate(40px, 20px) scale(0.9); }
    75% { transform: translate(-20px, 40px) scale(1.05); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    animation: slideDown 0.6s ease-out;
}

.hero-badge svg {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-sm);
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    animation: slideUp 0.8s ease-out 0.4s both;
}

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

/* Value Grid - Fixed spacing */
.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition);
    animation: slideUp 0.8s ease-out 0.6s both;
}

.value-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.value-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
}

.value-icon img {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.value-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.value-content p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: slideUp 0.8s ease-out 0.8s both;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero Visual - Morphing Animation */
.hero-visual {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 500px;
    animation: slideLeft 0.4s ease-out 0.3s both;
}
/* > 1750px */
@media (min-width: 1750px) {
  .hero-visual {
    right: 15%;
  }
}

/* 1450px – 1750px */
@media (min-width: 1450px) and (max-width: 1749px) {
  .hero-visual {
    right: 10%;
  }
}

/* 960px – 1450px */
@media (min-width: 960px) and (max-width: 1449px) {
  .hero-visual {
    right: 0;
    top: 35%;
    max-width: 420px;
  }
}


@keyframes slideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.morph-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.morph-shape {
    position: absolute;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 24s ease-in-out infinite;
    box-shadow: 
        0 50px 100px rgba(0, 102, 255, 0.25),
        0 20px 40px rgba(0, 212, 170, 0.15),
        inset 0 -20px 40px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    will-change: transform, border-radius;
}

.morph-container:hover .morph-shape {
    transform: scale(1.05);
}

@keyframes morph {
    0%, 100% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    12.5% { 
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(45deg) scale(1.02);
    }
    25% { 
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(90deg) scale(0.98);
    }
    37.5% { 
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(135deg) scale(1.03);
    }
    50% { 
        border-radius: 65% 35% 40% 60% / 40% 65% 35% 60%;
        transform: rotate(180deg) scale(0.97);
    }
    62.5% { 
        border-radius: 40% 60% 65% 35% / 50% 30% 70% 50%;
        transform: rotate(225deg) scale(1.02);
    }
    75% { 
        border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
        transform: rotate(270deg) scale(0.98);
    }
    87.5% { 
        border-radius: 45% 55% 70% 30% / 60% 40% 60% 40%;
        transform: rotate(315deg) scale(1.01);
    }
}

.morph-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.morph-icon {
    position: absolute;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 102, 255, 0.1);
    opacity: 0;
    transform: scale(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.5s ease;
}

.morph-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.morph-label {
    display:none;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    white-space: nowrap;
}

/* Animate each icon in sequence - slower for better readability */
.morph-icon:nth-child(1) { animation: iconRotate 24s ease-in-out 0s infinite; }
.morph-icon:nth-child(2) { animation: iconRotate 24s ease-in-out 3s infinite; }
.morph-icon:nth-child(3) { animation: iconRotate 24s ease-in-out 6s infinite; }
.morph-icon:nth-child(4) { animation: iconRotate 24s ease-in-out 9s infinite; }
.morph-icon:nth-child(5) { animation: iconRotate 24s ease-in-out 12s infinite; }
.morph-icon:nth-child(6) { animation: iconRotate 24s ease-in-out 15s infinite; }
.morph-icon:nth-child(7) { animation: iconRotate 24s ease-in-out 18s infinite; }
.morph-icon:nth-child(8) { animation: iconRotate 24s ease-in-out 21s infinite; }

@keyframes iconRotate {
    0%, 87.5%, 100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(30px);
    }
    4%, 12.5% { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
    16.5% { 
        opacity: 0; 
        transform: scale(0.8) translateY(-30px);
    }
}

.morph-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.morph-container:hover .morph-hint {
    opacity: 1;
}

/* ===== Partners Section - Fixed sizing ===== */
.partners {
    padding: var(--space-lg) 0;
    background: var(--gray-100);
    overflow: hidden;
}

.partners-label {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.partners-slider {
    position: relative;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: var(--space-xl);
    animation: scroll 30s linear infinite;
    align-items: center;
}

.bank-logo {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.bank-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

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

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

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

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

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Mobile button fix */
@media (max-width: 768px) {
    .hero-cta .btn-large {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
}

/* ===== Section Styles ===== */
section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-sm);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-700);
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Why Us - Bento Grid ===== */
.why-us {
    background: var(--white);
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.feature-large {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 212, 170, 0.05) 100%);
    min-height: 320px;
    padding: var(--space-2xl);
}


.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-700);
}

/* Interactive map for Acoperire nationala */
.romania-map {
    margin-top: var(--space-lg);
    position: relative;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-lg);
    overflow: visible;
    padding: 10px;
}

.map-svg {
    width: 100%;
    height: auto;
    display: block;
}

.county-dot {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    animation: pulse 3s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.county-dot:hover {
    transform: scale(1.8);
    filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.8));
}

.map-tooltip {
    position: absolute;
    background: var(--dark);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--dark);
    transform: translateX(-50%) rotate(45deg);
}

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

.county-badge {
    background: var(--accent);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.county-badge:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
}

.county-badge:last-child {
    background: var(--dark);
    color: var(--accent);
    font-weight: 600;
}

/* ===== Process Timeline - Fixed positioning ===== */
.process {
    background: var(--gray-100);
}

.process-timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 80px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    position: relative;
}

.process-card {
    background: var(--white);
    border-radius: 20px;
    padding: var(--space-lg);
    padding-top: calc(var(--space-lg) + 40px);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.process-card:hover,
.process-card.active {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-number {
    position: absolute;
    top: 20px;
    left: var(--space-lg);
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-icon {
    margin-bottom: var(--space-md);
    text-align: center;
}

.card-icon img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.process-card h3 {
    margin-bottom: var(--space-sm);
}

.process-card ul {
    list-style: none;
    margin-bottom: var(--space-sm);
}

.process-card li {
    font-size: 0.875rem;
    color: var(--gray-700);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.process-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.step-time,
.step-highlight {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

/* ===== Services ===== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-box {
    background: var(--gray-100);
    border-radius: 24px;
    padding: var(--space-xl);
    position: relative;
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

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

.service-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.service-icon {
    margin-bottom: var(--space-md);
    text-align: center;
}

.service-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.service-featured .service-icon img {
    filter: brightness(0) invert(1);
}

.service-box h3 {
    margin-bottom: var(--space-md);
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.service-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.service-featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.service-featured .service-features li::before {
    color: var(--accent);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-featured .service-link {
    color: var(--white);
}

.service-link:hover {
    gap: 1rem;
}

/* ===== Benefits Mosaic ===== */
.benefits {
    background: var(--gray-100);
}

.benefits-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: var(--space-md);
}

.benefit-tile {
    background: var(--white);
    border-radius: 20px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.benefit-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tile-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 212, 170, 0.1) 100%);
}

.tile-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--white);
}

.tile-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
}

.tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tile-accent .tile-icon img {
    filter: brightness(0) invert(1);
}

.benefit-tile h3 {
    margin-bottom: var(--space-sm);
}

.benefit-tile p {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.tile-accent p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Trust Section ===== */
.trust {
    background: var(--white);
}

.trust-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.trust-card {
    text-align: center;
    padding: var(--space-lg);
    border-radius: 20px;
    transition: var(--transition);
}

.trust-card:hover {
    background: var(--gray-100);
    transform: translateY(-4px);
}

.trust-card img {
    height: 80px;
    margin: 0 auto var(--space-md);
}

.trust-card h4 {
    margin-bottom: var(--space-xs);
}

.trust-card p {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* ===== FAQ Accordion ===== */
.faq-preview {
    background: var(--gray-100);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: var(--space-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.125rem;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--gray-700);
}

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

/* ===== Final CTA ===== */
.final-cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--white);
    top: -200px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -150px;
    left: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

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

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.cta-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.cta-tip svg {
    color: var(--accent);
}

/*anpc sal*/
.legal-logos {
  display: flex;
  justify-content: center;  /* center the two links horizontally */
  align-items: center;      /* vertical align in case they differ in height */
  gap: 1rem;                /* space between them */
  margin: 1rem 0;           /* adjust top/bottom spacing as needed */
}

/* Base image reset */
.legal-logos img {
  display: block;
  width: 250px;             /* or max-width: 100% if you want them responsive */
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;       /* small rounding, optional */
}

/* Hover/focus state */
.legal-logos a:hover img,
.legal-logos a:focus img {
  transform: scale(1.05);         /* subtle “pop” */
  filter: brightness(1.1);        /* slightly brighter */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* gentle shadow */
}


/* ===== Footer - Fixed spacing ===== */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-main {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-brand-bottom {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    margin-top: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    justify-content: center;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray-300);
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.footer-contact h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.contact-info {
    display: grid;
    gap: var(--space-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item a {
    color: var(--primary-light);
}

.contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top:2rem;
}

.footer-legal {
  /* make this full-width and stack its children vertically */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;        /* center everything horizontally */
 }

.footer-legal-links {
  display: flex;
  justify-content: center;    /* ← centers the links row */
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;      /* space between links and the © line */
  margin-top:-0.5rem;
}

.footer-legal-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 400;
}

.footer-legal-links a:hover {
    color: var(--white);
}

.footer-legal-links a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--gray-500);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ===== WhatsApp Support Button ===== */
.whatsapp-support {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: var(--white);
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-support:hover {
    background: #22C55E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    gap: 1rem;
}

.whatsapp-support img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.whatsapp-text {
    display: inline-block;
}

/* Pulse animation for attention */
.whatsapp-support::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 60px;
    transform: translate(-50%, -50%);
    animation: whatsapp-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-support {
        padding: 0.75rem;
        border-radius: 50%;
        bottom: 90px; /* Just above back-to-top button */
        left: auto;
        right: 30px; /* Aligned with back-to-top button */
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-support:hover {
        gap: 0.75rem;
    }
}

/* ===== Responsive ===== */
@media (min-width: 1000px) {
    .romania-map {
    top:0;
    right:var(--space-lg);
    position: absolute;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.counties-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-md);
    justify-content: left;
    }}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    
    .nav-phone span {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile menu when active */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: var(--space-xl) var(--space-lg);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active .nav-link,
    .nav-menu.active .nav-link-special {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--gray-100);
        margin: 0;
    }
    
    .nav-menu.active .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hide dropdown elements on mobile */
    .nav-link-dropdown svg {
        display: none;
    }
    
    .nav-dropdown .dropdown-menu {
        display: none !important;
    }
    
    /* Show mobile-only links */
    .nav-menu.active .mobile-only {
        display: block !important;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        position: static;
        width: 100%;
        max-width: 350px;
        margin: var(--space-xl) auto 0;
        transform: none;
    }
    
    .morph-icon {
        padding: 16px;
    }
    
    .morph-icon img {
        width: 90px;
        height: 90px;
    }
    
    .morph-label {
        font-size: 12px;
    }
    
    .morph-hint {
        font-size: 12px;
        padding: 6px 12px;
        bottom: -30px;
    }
    
    .value-grid {
        max-width: 100%;
        grid-template-columns: 1fr;
    }
    
    .features-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .feature-large,
    .feature-wide {
        grid-column: span 1;
        padding: var(--space-md);
    }
    
    .features-bento .feature-card {
        min-height: auto;
    }
    
    .feature-wide {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .counties-list {
        gap: 0.375rem;
    }
    
    .county-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
    
    .process-cards {
        grid-template-columns: 1fr;
    }
    
    .process-card {
        padding-top: calc(var(--space-lg) + 60px);
    }
    
    .card-number {
        top: 20px;
        right: var(--space-lg);
        left: auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .benefit-tile.tile-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .trust-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
     .footer-main {
        grid-template-columns: 3fr 2fr;
        gap: var(--space-lg);
    }
    
    .footer-brand {max-width: 440px;}
    
    .footer-links {
        text-align: left;
    }
    
    .footer-brand-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .footer-legal-links {
        font-size: 1rem;
        gap: 1rem;
    }
    
    .footer-legal-links a:not(:last-child)::after {
        right: -0.5rem;
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
	.footer-links {
    display: flex;
    justify-content: left;
}
	.bank-logo {
        width: 100px;
        height: 50px;
    }
    
    .partners-track {
        animation-duration: 20s;
    }
}