/* ===== Layout fix pentru footer lipit jos ===== */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    /* la fel ca footerul */
    color: #111;
}

/* Fix Lighthouse: H1UserAgentFontSizeInSection (deprecated default H1 size) */
h1 {
    font-size: 2.5rem;
    /* ca în Bootstrap, nu îți schimbă designul */
    line-height: 1.2;
    margin-bottom: 0.5rem;
}


main {
    flex: 1 0 auto;
}

footer.footer {
    margin-top: auto !important;
    flex-shrink: 0;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #333;
    padding: 1.5rem 0;
}


/* === Stabilizare Swiper pe homepage === */
/* === Stabilizare Swiper pe homepage === */
body.homepage .swiper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    /* mic spațiu pentru butoanele laterale */
    height: auto;
    /* ✅ suficient pentru imagini de 250-300px */
}

body.homepage .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ===== Carusel / Carduri ===== */
.carousel-card {
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    /* 🔹 nou */
    margin-right: auto;
    /* 🔹 nou */
}

/* ===== Imagini din card ===== */
.carousel-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
    aspect-ratio: 4/3;
}

/* ===== Titluri & Prețuri ===== */
.card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.5rem;
    min-height: 3rem;
}

.card-price {
    font-size: 1rem;
    font-weight: bold;
    color: #007BFF;
    min-height: 2rem;
}

.card-price small {
    font-size: 0.85rem;
    color: #666;
}

/* ===== Butoane admin ===== */
.admin-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===== Navbar ===== */
.navbar .btn {
    border-radius: 0.75rem;
    background-color: transparent;
    border: 2px solid #007BFF;
    color: #007BFF;
    transition: 0.3s;
    font-weight: bold;
}

.navbar .btn:hover {
    background-color: #007BFF;
    color: white;
}

.navbar .dropdown-menu {
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===== Responsive ajustări ===== */
@media screen and (max-width: 600px) {

    /* ne asigurăm că slide-ul centrează conținutul pe orizontală */
    body.homepage .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* cardul devine mai lat pe mobil și este centrat între săgeți */
    .carousel-card {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
        /* ✅ îl pune fix la mijloc */
    }
}


/* ===== Pagina printerdetails ===== */
.printer-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 1rem;
}

.printer-description {
    flex: 1 1 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

.printer-carousel {
    flex: 1 1 300px;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.printer-carousel img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .printer-detail-container {
        flex-direction: column;
        align-items: center;
    }

    .printer-description,
    .printer-carousel {
        max-width: 100%;
    }
}

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

/* Aspect general */
footer.footer {
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #333;
    flex-shrink: 0;
    padding: 1.5rem 0;
    height: auto;
    min-height: auto;
}


footer.footer .row {
    align-items: center;
    /* ✅ centrează vertical toate coloanele */
}

footer.footer .col-md-3,
footer.footer .col-md-2,
footer.footer .col-md-4 {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ✅ centrează conținutul în interior */
}

/* Text și linkuri */
.footer a {
    color: #004aad;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Navigație rapidă */
.footer-links li {
    margin-bottom: 5px;
    list-style: none;
}

/* Icone de contact */
.footer-icon {
    width: 32px;
    height: auto;
    max-height: 50px;
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Link "Despre noi" sub copyright */
.footer-about-link {
    margin-top: 4px;
}

.footer-about {
    font-size: 0.9rem;
    color: #777;
    text-decoration: none;
}

.footer-about:hover {
    color: #004aad;
    text-decoration: underline;
}

/* Bannere ANPC – aliniere și dimensiune constantă */
.anpc-banner {
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: 4px auto;
    display: block;
    object-fit: contain;
    border: none;
}

footer.footer .col-md-3:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive */
@media (max-width: 767px) {
    footer.footer .row {
        flex-direction: column;
        text-align: center;
    }

    footer.footer .col-md-3,
    footer.footer .col-md-2,
    footer.footer .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
        align-items: center;
    }

    .footer .footer-icon {
        width: 24px;
        height: 24px;
    }

    .footer .anpc-banner {
        width: 90%;
        height: auto;
        margin-top: 10px;
    }

    .footer ul {
        text-align: center;
        padding-left: 0;
    }

    .footer ul li {
        margin: 0.5rem 0;
    }
}


/* ===== Toast & Banner & Butoane plutitoare ===== */
.custom-toast,
.floating-order-btn,
.order-banner {
    position: fixed;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    transition: opacity 0.5s ease-in-out;
}

.custom-toast {
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: #fff;
    padding: 14px 22px;
}

.floating-order-btn {
    bottom: 80px;
    right: 20px;
    background-color: #28a745;
    color: #fff;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 30px;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.floating-order-btn:hover {
    background-color: #218838;
}

.order-banner {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.95);
    color: #000;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 1050;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slide-up 0.3s ease-out;
}

.order-banner-btn {
    background-color: #007bff;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.order-banner-btn:hover {
    background-color: #0056b3;
}

@keyframes slide-up {
    from {
        transform: translateX(-50%) translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ===== Formulare comandă ===== */
.order-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.order-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.order-form label {
    font-weight: 500;
}

.order-form textarea,
.order-form input {
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.order-form button {
    font-size: 1.1rem;
    border-radius: 12px;
}

/* ===== Butoane generale ===== */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: scale(1.03);
}

/* ===== Carduri imprimante quote ===== */
.card.card-printer {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 1rem;
    border: 2px solid #0d6efd;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-in-out both;
}

.card.card-printer:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 1) !important;
}

.card-printer h5 {
    font-weight: 800;
    font-size: 1.25rem;
    color: #212529;
    text-align: center;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-printer img {
    object-fit: contain;
    max-height: 250px;
}

.card-printer .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 160px;
}

.card-printer .price {
    color: #0d6efd;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    min-height: 2rem;
}

/* ===== Buton Detalii rotunjit ===== */
.btn-rounded {
    border-radius: 50rem;
    padding: 0.6rem 1.8rem;
    font-weight: 800;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    background-color: transparent;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-rounded:hover {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .btn-rounded {
        font-size: 1.15rem;
        padding: 0.75rem 2rem;
    }

    .card-printer h5 {
        font-size: 1.1rem;
    }

    .card-printer .price {
        font-size: 1.05rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Preț evidențiat general ===== */
.price-highlight {
    color: #0056b3;
    font-weight: bold;
}

/* Fix doar pentru tabelul de reducere chirie */
.reducere-chirie-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reducere-chirie-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    /* ajustează dacă ai 4-5 coloane */
}

/* Pe ecrane mici micșorăm textul și paddingul */
@media (max-width: 768px) {

    .reducere-chirie-container table th,
    .reducere-chirie-container table td {
        font-size: 14px;
        padding: 8px;
    }
}

/* === FUNDAL TRANSLUCID PENTRU PAGINA DESPRE NOI === */
.about-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 20px;
    min-height: 100vh;
    background: transparent !important;
}

/* Cutia cu text – alb translucid clar */
.about-box {
    background: rgba(255, 255, 255, 0.93);
    /* alb cu ușoară transparență */
    color: #111;
    max-width: 960px;
    width: 100%;
    padding: 50px 60px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
}

/* Titluri și paragrafe */
.about-box h1,
.about-box h2 {
    color: #000;
}

.about-box p,
.about-box li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #111;
}

.about-box ul {
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .about-box {
        padding: 25px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.95);
    }
}

/* === PAGINA SERVICE === */
.hero-service {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-service .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
}

.service-details img {
    max-height: 400px;
    object-fit: cover;
}

.why-us h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #333;
}

.cta {
    background: #004aad;
    border-radius: 0;
}

.cta h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

html,
body {
    overflow-x: hidden;
}

/* === Fix exclusiv pentru homepage === */
body.homepage main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body.homepage .swiper {
    margin-bottom: 6rem !important;
    padding-bottom: 0 !important;
}

body.homepage footer.footer {
    margin-top: auto !important;
}


/* carusel home */
.btn-custom-blue,
.btn-custom-green {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-custom-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn-custom-blue:hover {
    background: linear-gradient(135deg, #0056b3, #004099);
    transform: translateY(-2px);
}

.btn-custom-green {
    background: linear-gradient(135deg, #00b859, #009c33);
}

.btn-custom-green:hover {
    background: linear-gradient(135deg, #009c33, #007a28);
    transform: translateY(-2px);
}

@media (max-width: 600px) {

    .btn-custom-blue,
    .btn-custom-green {
        width: 100%;
        text-align: center;
    }
}



/* === Navbar === */

.no-bullet::before {
    content: none !important;
}

.navbar .btn {
    border-radius: 1rem;
    background-color: transparent;
    border: 2px solid #007BFF;
    color: #007BFF;
    transition: all 0.3s ease;
}

.navbar .btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.navbar .btn:hover {
    background-color: #007BFF;
    color: #fff;
}

.dropdown-menu .form-group label {
    color: #0056b3;
}

.dropdown-menu .btn-primary {
    border-radius: 1rem;
    background-color: transparent;
    color: #007BFF;
    border: 2px solid #007BFF;
    transition: all 0.3s ease;
}

.dropdown-menu .btn-primary:hover {
    background-color: #007BFF;
    color: #fff;
}

/* Buton configurator (nuanță albastru închis) */
.btn-configurator {
    border-color: #0056b3 !important;
    color: #0056b3 !important;
}

.btn-configurator:hover {
    background-color: #0056b3 !important;
    color: #fff !important;
}

/* === Linie info (sub fiecare câmp) === */
.info-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid #007bff;
    border-radius: 8px;
    font-size: 1.05rem;
    /* 📌 SCRIS MAI MARE */
    line-height: 1.5;
    color: #003366;
    /* text mai intens */
}

/* Iconița */
.info-icon {
    font-size: 1.25rem;
    /* 📌 iconiță mai mare */
    color: #007bff;
    margin-top: 2px;
}

/* Textul */
.info-text {
    flex: 1;
    font-weight: 600;
    /* text mai gros, dar nu prea gros */
}


/* ==== Homepage: text hero de sus ==== */

.home-hero-lead {
    max-width: 900px;
}

.home-hero-subtitle {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.home-hero-note {
    margin-top: 0.6rem;
    color: #555;
    font-size: 1rem;
}

/* ==== Homepage: cutia de text SEO de jos ==== */

.home-text-box {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Tipografie desktop */
body.homepage .home-text-box h2 {
    font-size: 2rem;
    font-weight: 700;
}

body.homepage .home-text-box h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

body.homepage .home-text-box p,
body.homepage .home-text-box li {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ==== Mobile: să arate bine pe telefon ==== */
@media (max-width: 768px) {

    .home-text-box {
        margin: 1.5rem 1rem 2rem;
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }

    body.homepage .home-text-box h2 {
        font-size: 1.65rem;
    }

    body.homepage .home-text-box h3 {
        font-size: 1.25rem;
    }

    body.homepage .home-text-box p,
    body.homepage .home-text-box li {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

.seo-text-box {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* ==== Cutie SEO generală (închirieri-imprimante) – FINALĂ ==== */
.seo-text-box {
    background: #ffffff !important;
    /* alb 100%, forțat */
    border-radius: 18px;
    padding: 2.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

/* tipografie în cutie */
.seo-text-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #000;
}

.seo-text-box p,
.seo-text-box li {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #333;
}

.seo-text-box ul {
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ==== MOBILE ==== */
@media (max-width: 768px) {
    .seo-text-box {
        margin: 0 1.5rem 2.8rem;
        /* spațiu lateral clar pe mobil */
        padding: 1.8rem 1.4rem;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .seo-text-box h2 {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .seo-text-box p,
    .seo-text-box li {
        font-size: 1.15rem;
        line-height: 1.8;
    }
}



/* ===== FAQ – cutie albă peste fundalul cu birou ===== */
.faq-accordion-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-accordion-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
}

/* Structura acordionului */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-acc-item {
    border-radius: 10px;
    border: 1px solid rgba(13, 110, 253, 0.15);
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

/* Butonul de întrebare */
.faq-acc-btn {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.faq-acc-btn span {
    text-align: left;
}

/* Iconul „+ / –” din dreapta */
.faq-icon {
    font-style: normal;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0d6efd;
    transition: transform 0.2s ease;
}

/* Conținutul răspunsului – animație de deschidere/închidere */
.faq-acc-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.1rem;
    transition: max-height 0.2s ease, padding-bottom 0.2s ease;
}

.faq-acc-content p {
    margin: 0.6rem 0 0.85rem;
    font-size: 0.98rem;
    color: #444;
    line-height: 1.6;
}

/* Când este activ */
.faq-acc-item.active .faq-acc-content {
    max-height: 300px;
    /* suficient pentru text */
    padding-bottom: 0.8rem;
}

.faq-acc-item.active .faq-icon {
    transform: rotate(45deg);
    /* + devine un fel de x */
}

/* ==== Mobile tweak ==== */
@media (max-width: 768px) {
    .faq-accordion-container {
        padding: 1.8rem 1.2rem;
        margin-bottom: 2rem;
    }

    .faq-accordion-title {
        font-size: 1.6rem;
    }

    .faq-acc-btn {
        font-size: 0.98rem;
        padding: 0.8rem 0.9rem;
    }

    .faq-acc-content p {
        font-size: 0.95rem;
    }
}

/* ==== Fix aliniere card carusel pe mobil între săgeți ==== */
@media (max-width: 600px) {

    /* containerul caruselului să fie pe toată lățimea, fără padding lateral */
    .home-carousel-wrapper-light {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* swiper ocupă toată lățimea ecranului */
    body.homepage .swiper {
        width: 100% !important;
    }

    /* fiecare slide = 100% lățime și conținut centrat */
    body.homepage .swiper-slide {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* link-ul care învelește cardul umple slide-ul, dar rămâne centrat */
    body.homepage .swiper-slide>a {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* cardul are aceeași lățime ca linkul și e centrat perfect */
    .carousel-card {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==== Fix pentru fundalul caruselului pe mobil ==== */

.swiper-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Mobil – forțăm aliniere și mai strictă */
@media (max-width: 768px) {
    .swiper-slide {
        background-position-x: center !important;
        background-position-y: center !important;
    }
}