/* Custom CSS for Bootstrap 5 Implementation */

/* CSS Custom Properties */
:root {
    --primary-color: #FF9936;
    --secondary-color: #778D99;
    --dark-color: #213946;
    --light-gray: #f8f9fa;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body, html {
  font-family: "Roboto", sans-serif;
  font-size:18px;
}
a {
    text-decoration:none;
}
/* Override Bootstrap primary color */
.text-primary {
    color: var(--primary-color) !important;
}
.title {
    font-size:56px;
}
.subtitle {
    font-size:50px;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: #213946;
    border-color: #213946;
}

.btn-primary:active {
    background-color: #d44d1f !important;
    border-color: #d44d1f !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
    font-size:24px;
    padding: 3px;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
    color: white !important;
}

.contact-info, .contact-info a {
    color:black;
    font-weight:500;
}
.contact-info > span:not(:first-of-type):not(:last-of-type) {
    border-left:1px solid #000000;
    border-right:1px solid #000000;
}
.navbar-top .container-custom {
    border-bottom: 1px solid #213946;
}
.navbar-bottom {
    background-color: #FF9937;
    min-height: 85px;
}
.navbar-bottom .navbar-nav > li.nav-item {
    padding-right:25px;
    padding-left:25px;
}
.navbar-bottom .navbar-nav > li.nav-item:last-of-type {
    padding-right:0px;
}
.navbar-bottom .navbar-nav > li.nav-item:first-of-type {
    padding-left:0px;
}
.navbar-bottom .navbar-nav > li.nav-item:not(:last-of-type) {
    border-right:1px solid #000000;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color), #8a9ba0);
    background-image: url(images/hero-protejare.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 720px;
    border-radius: 20px;
}

.hero-section .display-4 {
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.125rem;
    opacity: 0.95;
}

.hero-section .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 65px;
    width: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: 0.5px;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.hero-section img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.container-custom {
    width: calc(100% - (85px * 2));
    margin-left: auto;
    margin-right: auto;
}
.container-custom-p {
    padding: 0px 70px;
}

/* Steps Section */
.step-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 15px;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-sidebar {
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.contact-sidebar .contact-item > div:first-of-type {
    font-weight: 700;
}
.contact-sidebar h4, .contact-sidebar a {
    color: #213946;
}

.contact-sidebar .contact-item {
    transition: transform 0.3s ease;
    background-color: #FFAB59;
    border-radius: 15px;
    padding: 25px;
}

.contact-sidebar .contact-item:hover {
    transform: scale(1.05);
}

/* How it works section - New Layout */
.cum-functioneaza .container-custom {
    background-color:#d5dadc;
    border-radius: 20px;
    padding: 70px 120px;
}
.how-it-works-content {
    padding-right: 2rem;
}

.how-it-works-content h3 {
    color: #333;
    font-size: 1.75rem;
}

.how-it-works-content p {
    line-height: 1.7;
    text-align: justify;
}

.hero-image-section {
    position: relative;
}

/* Documents Section */
.documents-section {
    padding-left: 2rem;
}

.documents-section h3 {
    color: #333;
    font-size: 1.75rem;
}

#documentsCarousel {
    margin: 0 auto;
}

.document-item {
    padding: 1rem;
}

.document-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.document-image img {
    width: 100%;
    object-fit: contain;
}

#documentsCarousel .carousel-control-prev,
#documentsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#documentsCarousel .carousel-control-prev {
    left: 30px;
}

#documentsCarousel .carousel-control-next {
    right: 30px;
}

#documentsCarousel .carousel-control-prev:hover,
#documentsCarousel .carousel-control-next:hover {
    opacity: 1;
}

#documentsCarousel .carousel-control-prev-icon,
#documentsCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.document-list li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.document-list strong {
    color: #333;
}
#documentsCarousel .carousel-inner {
    width: calc(100% - 120px);
    margin: auto;
}
.subfooter {
    background-color: var(--secondary-color);
}


/* Responsive adjustments */
@media (max-width: 991.98px) {
    .how-it-works-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .documents-section {
        padding-left: 0;
    }
    
    .hero-image-section {
        text-align: center;
    }
    
    .hero-image-section img {
        max-width: 250px;
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .how-it-works-content h3,
    .documents-section h3 {
        font-size: 1.5rem;
    }
    
    .hero-image-section img {
        max-width: 200px;
        height: 200px;
    }
    
    #documentsCarousel .carousel-control-prev,
    #documentsCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #8a9ba0);
}

/* Calculator */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
#calculatorForm .btn {
    border-radius:15px;
}

/* Testimonials - CAROUSEL CUSTOM COMPLET */
.custom-testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-wrapper {
    overflow: hidden;
    position: relative;
    width: calc(100% - 120px);
    margin: auto;
}

.testimonials-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.testimonial-item {
    flex: 0 0 33.333%;
    width: 33.333%;
    padding: 0 15px;
}

.testimonial-card {
    height: 100%;
    /* min-height: 220px; */
    margin-bottom: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background-color: #213946;
    padding: 80px 60px 65px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-arrow {
    position: absolute;
    top: 65px;
    left: 125px;
    width: 0;
    height: 0;
    transform: rotate(180deg);
    transform-origin: center;
}
.testimonial-arrow i {
    color: var(--primary-color);
    font-size: 80px;
    opacity: 0.6;
}
.testimonial-card blockquote p {
    font-size: 20px;
    line-height: 1.5;
}
.testimonial-card .blockquote-footer cite {
    font-size: 22px;
}
.testimonial-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.testimonial-control:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

.testimonial-control-prev {
    left: 15px;
}

.testimonial-control-next {
    right: 15px;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-indicators button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-indicators button.active,
.testimonial-indicators button:hover {
    background-color: var(--primary-color);
}
.blockquote-footer {
    margin-top: 1.5rem;
    margin-bottom: 0rem;
    font-size: 1rem;
    color: #6c757d;
    width: 60%;
}

/* Responsive pentru testimonials custom */
@media (max-width: 991.98px) {
    .testimonial-item {
        flex: 0 0 50%;
        width: 50%;
    }
}

@media (max-width: 767.98px) {
    .testimonial-item {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 5px;
    }
    
    .testimonial-control {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-card {
        min-height: 180px;
        margin-bottom: 0;
    }
    
    .testimonial-card blockquote p {
        font-size: 0.9rem;
    }
}

/* Contact Methods */
.contact-method {
    transition: all 0.5s ease;
    /* border: 1px solid #e9ecef; */
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
#contact .contact-method a {
    color:black;
    display: block;
}
#contact .contact-method i {
    font-size: 4.5rem;
    color:black !important;
}
.contact-icon {
    display: flex;
    column-gap: 8px;
}

/* Footer */
footer:not(.blockquote-footer) {
    background-color: var(--dark-color) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}
.logo-footer img {
    max-width: 270px;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #213946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* Services Cards Section */
.service-card {
    height: 300px;
    transition: transform 0.3s ease;
    border-radius: 15px;
    min-height: 450px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 100%;
    position: relative;
}

.service-image img {
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.service-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.service-content h5 {
    font-size: 24px;
    line-height: 1.4;
}

.service-content .btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 54, 0.3);
}

/* Calculator Section - New Design */
.calculator-field {
    position: relative;
}

.calculator-field .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-weight: 600;
    font-size: 1.1rem;
}

.calculator-field .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 54, 0.25);
}

.calculator-field .input-group-text {
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    font-size: 1rem;
}

.info-box {
    border: 1px solid #e9ecef;
    min-height: 80px;
}

.result-section {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
    margin-top: 1rem;
}

.result-amount {
    border: 2px solid var(--dark-color);
    background-color: var(--dark-color) !important;
    border-radius: 15px;
}

#calculatorForm .btn-primary {
    border-radius: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
#calculatorForm .input-group-text {
    min-width: 150px;
    display: flex;
    justify-content: center;
}

/* Responsive Design */

@media screen and (max-width: 1699px) {
    .container-custom {
        width: calc(100% - (75px * 2));
    }
    .title {
        font-size: 50px;
    }
    .subtitle {
        font-size: 46px;
    }
    .navbar-bottom {
        min-height: 70px;
    }
    .navbar-nav .nav-link {
        font-size: 22px;
    }
    .navbar-brand img {
        max-width: 280px;
    }
    .cum-functioneaza .container-custom {
        padding: 50px 80px;
    }
    .how-it-works-content .hero-image-section img {
        max-width:90%
    }
    .container-custom-p {
        padding: 0px 50px;
    }
    .testimonial-card {
        padding: 60px 40px 45px;
    }
    .testimonial-card blockquote p {
        font-size: 18px;
    }
    #contact .contact-method i {
        font-size: 3.5rem;
    }
    .hero-section {
        min-height: 600px;
    }
    .service-card {
        min-height: 350px;
    }
    .testimonial-arrow i {
        font-size: 65px;
    }
    .testimonial-arrow {
        top: 52px;
        left: 96px;
    }
}

@media screen and (max-width: 1499px) {
    .navbar-brand img {
        max-width: 260px;
    }
    .container-custom {
        width: calc(100% - (60px * 2));
    }
    .title {
        font-size: 42px;
    }
    .subtitle {
        font-size: 38px;
    }
    .container-custom-p {
        padding: 0px 30px;
    }
    .cum-functioneaza .container-custom {
        padding: 50px 50px;
    }
    .testimonial-card {
        padding: 50px 20px 30px;
    }
    .testimonial-card blockquote p {
        font-size: 17px;
    }
    #contact .contact-method i {
        font-size: 3rem;
    }
    .logo-footer img {
        max-width: 220px;
    }
    .service-card {
        min-height: 300px;
    }
    .service-content h5 {
        font-size: 22px;
    }
    .testimonial-arrow i {
        font-size: 58px;
    }
    .testimonial-arrow {
        top: 48px;
        left: 70px;
    }
}

@media screen and (max-width: 1199px) {
    body, html {
        font-size: 17px;
    }
    .navbar-brand img {
        max-width: 230px;
    }
    .navbar-nav .nav-link {
        font-size: 20px;
    }
    .navbar-bottom {
        min-height: 60px;
    }
    .container-custom {
        width: calc(100% - (40px * 2));
    }
    .title {
        font-size: 38px;
    }
    .subtitle {
        font-size: 36px;
    }
    .hero-section {
        min-height: 550px;
    }
    .how-it-works-content .hero-image-section img {
        max-width: 100%;
        height: auto;
    }
    .documents-section {
        padding-left: 0rem;
    }
    .cum-functioneaza .row {
        row-gap: 2rem;
    }
    .service-content h5 {
        font-size: 20px;
    }
}


@media (max-width: 992px) {
    body, html {
        font-size: 17px;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .contact-info {
        margin-top: 1rem;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    .hero-section {
        min-height: 400px;
    }
    .container-custom {
        width: calc(100% - (30px * 2));
    }
    .title {
        font-size: 36px;
    }
    .subtitle, .contact-sidebar h4 {
        font-size: 32px;
    }
    .contact-sidebar {
        row-gap: 1rem;
        margin-left: 0px !important;
        margin-top: 3rem;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .container-custom-p {
        padding: 0px;
    }
    .cum-functioneaza .container-custom {
        padding: 50px 30px;
    }
    .contact-sidebar .contact-item {
        font-size: 18px;
    }
    #contact .contact-method i {
        font-size: 2.5rem;
    }


}

@media (max-width: 767px) {
    .container-custom {
        width: calc(100% - (15px * 2));
    }
    .navbar-brand img {
        max-width: 200px;
    }
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .contact-sidebar {
        margin-top: 2rem;
    }

    .navbar-top .contact-info .px-3 {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
    .title {
        font-size: 32px;
    }
    .subtitle, .contact-sidebar h4 {
        font-size: 30px;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .how-it-works-content h3, .documents-section h3 {
        font-size: 22px;
    }
    #navbarNav1 .contact-info {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center !important;
    }
    .contact-info > span:not(:first-of-type):not(:last-of-type) {
        border: none;
    }
    .service-card {
        height: 250px;
    }
    
    .service-content h5 {
        font-size: 1.1rem;
    }
    .blockquote-footer {
        width: 100%;
    }
    .testimonial-card .blockquote-footer cite {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-width: 160px;
    }
    .navbar-nav .nav-link {
        font-size: 18px;
    }
    .title {
        font-size: 28px;
    }
    .subtitle, .contact-sidebar h4 {
        font-size: 26px;
    }
    .step-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .cum-functioneaza .container-custom {
        padding: 50px 20px;
    }
    #documentsCarousel .carousel-inner {
        width: calc(100% - 95px);
    }
    #documentsCarousel .carousel-control-next {
        right: 15px;
    }
    #documentsCarousel .carousel-control-prev {
        left: 20px;
    }
    .testimonial-card blockquote p {
        font-size: 16px;
    }
    .subfooter .row {
        row-gap: 15px;
    }
    .hero-section .btn {
        width: 320px;
        min-height: 60px;
    }
    .navbar-bottom .navbar-nav > li.nav-item {
        padding-right: 10px;
        padding-left: 10px;
    }

}

@media (max-width: 399px) {
    .title {
        font-size: 25px;
    }
    .navbar-brand img {
        max-width: 100%;
    }
    .hero-section .btn {
        width: auto;
        line-height: 1.2;
    }
    .navbar-bottom .navbar-nav > li.nav-item {
        padding-right: 5px;
        padding-left: 5px;
    }
    .navbar-expand .navbar-nav {
        flex-wrap: wrap;
    }

}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Bootstrap Component Overrides */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 2rem;
}

.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.card-body {
    padding: 2rem;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #213946;
}

/* Print Styles */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .card,
    .step-item {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}