/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Slab", serif;
	font-optical-sizing: auto;
    transition: all 0.4s ease;;
}


/* ===== Colours ===== */
:root{
    --body-color: #E4E9F7;
    --nav-color: #4070F4;
    --side-nav: #010718;
    --text-color: #FFF;
    --search-bar: #F2F2F2;
    --search-text: #010718;
}

body{
    height: 100vh;
}

a {
	position: relative !important;
	z-index: 10 !important;
	color: #007bff;
}

body.dark{
    --body-color: #18191A;
    --nav-color: #242526;
    --side-nav: #242526;
    --text-color: #CCC;
    --search-bar: #242526;
}
body.dark {
	background: #15292B;
	background-attachment: fixed;
	background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.dark .logo {
    filter: invert(1);
}

body.dark .card {
    background: transparent;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    z-index: 100;
	background: white;
}

body.dark nav, .dark .nav-links {
    border: 1px solid #15292B;
	background-color: #15292B;

}

body.dark .container, body.dark .container select, body.dark .container input{
    background: #15292b;
    color: white;
}

body.dark .container .title {
    color: orange;
}

body.dark nav, body.dark .menu {
    background: #15292b!important;
    color: white
}

body.dark i, body.dark nav .nav-bar .sidebarOpen, body.dark .nav-links li a {
	color: white ;
}

body.dark .contact-card, body.dark .contact-card input, body.dark .contact-card textarea {
    background: transparent;!important
    color: white;
}

body.dark .contact-card input {
	font-style: italic;
}

body.dark .footer {
	background: #15292B;
}

body.dark .news-title a {
    color: white;
}

body.dark .news-excerpt {
    color: #a0a0a0;
}
.dark .card-body {
	color: #fff;
}

nav .nav-bar{
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .nav-bar .sidebarOpen{
    color: #09667d;
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
	position: absolute;
	right: 1rem;
}

nav .nav-bar .logo a{
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.menu .logo-toggle{
    display: none;
}

.nav-bar .nav-links{
    display: flex;
}

.nav-bar .nav-links li{
    margin: 0 5px;
    list-style: none;
}

.nav-links li a{
    position: relative;
    font-size: .9rem;
    font-weight: 700;
    color: #09667d;
    text-decoration: none;
    padding: 10px;
}

.nav-links li a::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links li:hover a::before{
    opacity: 1;
}

ul {
	margin: 0 !important;
}

.nav-bar .darkLight-searchBox{
    display: flex;
    align-items: center;
}

.darkLight-searchBox .dark-light,
.darkLight-searchBox .searchToggle{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2rem;
}

.dark-light i,
.searchToggle i{
    position: absolute;
    color: #09667d;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i.sun{
    opacity: 0;
    pointer-events: none;
}

.dark-light.active i.sun{
    opacity: 1;
    pointer-events: auto;
}

.dark-light.active i.moon{
    opacity: 0;
    pointer-events: none;
}

.searchToggle i.cancel{
    opacity: 0;
    pointer-events: none;
}

.searchToggle.active i.cancel{
    opacity: 1;
    pointer-events: auto;
}

.searchToggle.active i.search{
    opacity: 0;
    pointer-events: none;
}

.searchBox{
    position: relative;
	display: none;
}

.searchBox .search-field{
    position: absolute;
    bottom: -85px;
    right: 5px;
    height: 50px;
    width: 300px;
    display: flex;
    align-items: center;
    background-color: var(--nav-color);
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.searchToggle.active ~ .search-field{
    bottom: -74px;
    opacity: 1;
    pointer-events: auto;
}

.search-field::before{
    content: '';
    position: absolute;
    right: 14px;
    top: -4px;
    height: 12px;
    width: 12px;
    background-color: var(--nav-color);
    transform: rotate(-45deg);
    z-index: -1;
}

.search-field input{
    height: 100%;
    width: 100%;
    padding: 0 45px 0 15px;
    outline: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--search-text);
    background-color: var(--search-bar);
}

body.dark .search-field input{
    color: var(--text-color);
}

.search-field i{
    position: absolute;
    color: var(--nav-color);
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

body.dark .search-field i{
    color: var(--text-color);
}

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


/* GRID PENTRU CARDURI */
.cards{
    display: grid;
    grid-template-columns: 1fr; /* Mobil: 100% */
    gap: 10px;
    width: 100%;
    max-width: 1400px;
}

.card{
    background-color: #1c1b29;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.18);
    overflow: hidden;
	outline: dashed 1px transparent;
    outline-offset: -5px;
}

/* card-body IMAGINE */
.benefits .card-body{
    position: relative;
    clip-path: polygon(0 0,100% 0, 100% 85%, 0 100%);
}

.card-body img{
    width: 100%;
    display: block;
    border-radius: 20px 20px 0 0;
}

/* OVERLAY GRADIENT */
.card-body::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px 20px 0 0;
    opacity: 0.5;
}

.card1 {
	background: #523ee8;
}
.card2 {
	background: #3cbdad;
}
.card3 {
	background: #b7601e;
}
.card4 {
	background: #9335ce;
}
.card5 {
	background: #ed143dd1;
}
.card6 {
	background: #008000b8;
}
.card7 {
	background: #283975e6;
}
.card8 {
	background: #6610f2d4;
}

.card1 > .card-body::after{
    background: #523ee8;
}

.card2 > .card-body::after{
    background: #3cbdad;
}

.card3 > .card-body::after{
    background: #b7601e;
}
.card4 > .card-body::after{
    background: #9335ce;
}
.card5 > .card-body::after{
    background: #ed143dd1;
}
.card6 > .card-body::after{
    background: #008000b8;
}
.card7 > .card-body::after{
    background: #283975e6;
}
.card8 > .card-body::after{
    background: #6610f2d4;
}


/* TEXT */
.card .details{
    padding: 20px 15px 0;
}

.details h3{
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.details p{
    color: #fff;
    line-height: 1.5;
    font-weight: 100;
}
.cotizatie, .obiective {
    font-size: clamp(.9rem,2.5vw,1rem);
    padding: 1rem;
}

@media (min-width: 800px){
	.cards{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		width: 100%;
		max-width: 1400px;
	}
}

@media (max-width: 1024px) {
    nav .nav-bar .sidebarOpen{
        display: block;
    }
	.acord-details .category label {
		display: block;
	}

    .menu{
        position: fixed;
        height: 100%;
        width: 60%;
        left: -100%;
        top: 0;
        padding: 20px;
        background: linear-gradient(135deg, #0a4d68, #088395);
        z-index: 100;
        transition: all 0.4s ease;
		box-shadow: 1px 1px 15px #4a4f54;
    }

    nav.active .menu {
        left: -0%;
    }
	
	nav.active .menu li a {
		color: #fff;
	}

    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-toggle .siderbarClose{
        color: var(--text-color);
        font-size: 30px;
        cursor: pointer;
		margin: 0 90%;
    }

    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 5rem;
    }

    .nav-links li a{
        display: block;
        margin-top: 0;
		font-size: 1.1rem;
    }
}

/* Desktop: 3 carduri pe rand (33%) */
@media (min-width: 1024px){
    .cards{
        grid-template-columns: repeat(3, 1fr);
    }
	.nav-links {
		background: white;
	}
}

@keyframes blury {
  from {
    filter: blur(10px);
  }
  to {
    filter: blur(0);
  }
}

.blur-animate {
  animation: blury 1.5s ease-out forwards;
}
