/* =========================
   WEBX - STILURI GENERALE
========================= */

:root {
    --color-red: #ed171f;
    --color-red-hover: #c91017;
    --color-black: #101010;
    --color-text: #181818;
    --color-dark-surface: #202020;
    --color-gray: #dedede;
    --color-muted: #555866;
    --color-white: #ffffff;
    --color-border: #e8e8e8;
    --color-whatsapp: #25D366;
    --font-main: 'Manrope', sans-serif;
    --container-width: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
}

body,
button,
input,
textarea {
    font-family: var(--font-main);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(var(--container-width), 92%);
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    line-height: 1.12;
}

h1,
h2 {
    margin-top: 0;
    font-weight: 800;
    letter-spacing: -1.5px;
}

h1 {
    font-size: clamp(38px, 4.3vw, 62px);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 3.2vw, 43px);
}

h1 span,
h2 span {
    color: var(--color-red);
}

p {
    color: var(--color-muted);
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--color-white);
    background: var(--color-red);
}

.button-primary:hover {
    background: var(--color-red-hover);
}

.button-secondary {
    color: var(--color-text);
    background: transparent;
    border-color: var(--color-border);
}

.button-secondary:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

/* HERO */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5px;
    padding-top: 45px;
    padding-bottom: 0px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 18px;
}

.hero-description {
    max-width: 550px;
    margin-bottom: 25px;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    inset: 0 0 0 auto;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}



/* =========================
   HEADER
========================= */
/* Decorul Hero se extinde în spatele headerului */
.top-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 620px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;

    -webkit-mask-image: linear-gradient(to bottom,
            #000 0,
            #000 135px,
            transparent 150px);
    mask-image: linear-gradient(to bottom,
            #000 0,
            #000 135px,
            transparent 150px);
}

.decoration-line {
    position: absolute;
    top: -160px;
    height: 850px;
    transform: rotate(42deg);
    transform-origin: top center;
}

.decoration-line-red {
    right: 34%;
    width: 21px;
    background: var(--color-red);
    opacity: 1;
}

.decoration-line-gray-wide {
    right: 24%;
    width: 38px;
    background: var(--color-gray);
    opacity: 1;
}

.decoration-line-red-thin {
    right: 17%;
    width: 12px;
    background: var(--color-red);
    opacity: 1;
}

.decoration-line-gray-thin {
    right: 7%;
    width: 70px;
    background: #c9c9c9;
    opacity: 1;
}

/* Headerul rămâne deasupra decorului */
.site-header {
    position: sticky;
    top: 0;
    z-index: 102;
    background: linear-gradient(115deg,
            rgb(255 255 255 / 65%) 55%,
            rgb(243 243 243 / 65%) 100%);
    backdrop-filter: none;
    border-bottom: 1px solid rgb(0 0 0 / 5%);
}

/* Conținutul Hero rămâne lizibil */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.header-inner,
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.header-inner {
    min-height: 76px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1;
}

.brand-name {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: 7px;
}

.brand-name span {
    color: var(--color-red);
}

.brand-tagline {
    margin-top: 7px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-link {
    position: relative;
    padding: 28px 0;
    font-size: 12px;
    font-weight: 700;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;
    height: 2px;
    background: var(--color-red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-cta {
    min-height: 40px;
    padding: 10px 15px;
    font-size: 11px;
}


/* Burger menu */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 5px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    cursor: pointer;
}


.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--color-black);
    transform-origin: center;
    transition:
        transform 0.35s cubic-bezier(0.68, -0.4, 0.27, 1.4),
        background-color 0.2s ease,
        opacity 0.2s ease;
}

/* Varianta C - transformare organică */
.menu-toggle span:nth-child(1) {
    transition-delay: 0s;
}

.menu-toggle span:nth-child(2) {
    transition-delay: 0.06s;
}

.menu-toggle span:nth-child(3) {
    transition-delay: 0.12s;
}

/* Meniu deschis */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(43deg);
    background: var(--color-red);
    transition-delay: 0.08s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
    background: var(--color-red);
    transition-delay: 0s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-43deg);
    transition-delay: 0.04s;
}


.logo img {
    display: block;
    width: 215px;
    height: auto;
}



/* Imaginea ocupă toată partea dreaptă a Hero-ului */
.hero-visual img {
    display: block;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.hero-benefits {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 35px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 16px;
    border-right: 2px solid var(--color-gray);
}

.benefit:first-child {
    padding-left: 0;
}

.benefit:last-child {
    padding-right: 0;
    border-right: none;
}

.benefit-icon {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: var(--color-red);
}

.benefit p {
    margin: 0;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}



/* TITLURI DE SECTIUNE */
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 35px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-intro {
    max-width: 420px;
    margin: 0 0 4px;
    font-size: 14px;
}



/* SERVICII */
.services {
    background: linear-gradient(115deg,
            var(--color-white) 55%,
            #f3f3f3 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-width: 0;
    padding: 25px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    transition: transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgb(0 0 0 / 8%);
    border-color: var(--color-red);
}

.service-icon {
    display: block;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    color: var(--color-red);
    flex-shrink: 0;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 18px;
    color: var(--color-gray);
    font-size: 19px;
    font-weight: 800;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.service-card p {
    margin: 0 0 18px;
    font-size: 13px;
}


.service-card>a,
.portfolio-info>a {
    position: relative;
    display: inline-block;
    color: var(--color-red);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.service-card>a::after,
.portfolio-info>a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card>a:hover::after,
.portfolio-info>a:hover::after {
    transform: scaleX(1);
}


/* PORTOFOLIU */
.portfolio {
    color: var(--color-white);
    background: linear-gradient(125deg,
            var(--color-black),
            var(--color-dark-surface));
}

.portfolio h2 {
    color: var(--color-white);
}

.portfolio .section-intro {
    color: #d0d0d0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.portfolio-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-dark-surface);
}

/* Imaginea ocupă tot cardul */
.portfolio-image {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    overflow: hidden;
}

.portfolio-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

/* Gradient pentru lizibilitatea textului */
.portfolio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgb(0 0 0 / 88%) 0%,
            rgb(0 0 0 / 45%) 32%,
            transparent 70%);
    pointer-events: none;
}

/* Text suprapus în partea de jos */
.portfolio-info {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    color: var(--color-white);
    pointer-events: none;
}

.portfolio-info h3 {
    margin: 0 0 5px;
    color: var(--color-grey);
    font-size: 22px;
    font-weight: 800;
}


.portfolio-info .portfolio-category {
    display: block;
    margin: 0;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
}

/* Hover pe imagine */
.portfolio-card:hover .portfolio-image img {
    transform: scale(1.045);
}


/* DESPRE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5px;
}

.about-content>p:not(.eyebrow) {
    max-width: 560px;
}

.about-visual img {
    width: 100%;
    max-height: 440px;
    border-radius: 8px;
    object-fit: contain;
}

.about-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    font-size: 13px;
    font-weight: 700;
}

.about-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-red);
    content: "✓";
    font-size: 12px;
}


/* CONTACT */
.contact {
    background: linear-gradient(115deg,
            var(--color-white) 55%,
            #f3f3f3 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-info .eyebrow {
    margin-bottom: 10px;
}

.contact-info h2 {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.12;
}

.contact-info>p:not(.eyebrow) {
    max-width: 430px;
    margin-bottom: 18px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.contact-details a,
.contact-details>div {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
}

.contact-details a {
    transition: color 0.35s ease, transform 0.35s ease;
}

.contact-details a:hover {
    color: var(--color-red);
    transform: translateY(-2px);
}

.contact-details i {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 16px;
    transition: background 0.35s ease, border-color 0.35s ease,
        color 0.35s ease;
}

.contact-details a:hover i {
    border-color: var(--color-red);
    background: var(--color-red);
    color: var(--color-white);
}

.contact-form,
.contact-form label {
    display: grid;
    gap: 7px;
}

.contact-form {
    align-content: start;
    gap: 15px;
    padding-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.contact-form label {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    outline: none;
    color: var(--color-text);
    background: var(--color-white);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
}

.contact-form input {
    height: 40px;
}

.contact-form textarea {
    min-height: 68px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgb(237 23 31 / 8%);
}

.contact-form .button {
    width: 100%;
    min-height: 38px;
    border-radius: 5px;
}

.form-notice {
    margin: 0;
    font-size: 13px;
}


/* =========================
   WEBX - CONFIRMARE TRIMITERE
========================= */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(12px);
    animation: successFadeIn 0.35s ease both;
}

.success-modal {
    width: 100%;
    max-width: 760px;
    padding: 48px 32px;
    text-align: center;
    color: var(--color-white);
    animation: successRise 0.55s ease both;
}

/* Ilustrația: centrare optică */
.success-illustration {
    width: min(100%, 300px);
    margin: 0 auto 12px;
    transform: translateX(-6px);
}

.success-illustration svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 32px;
    border: 1px solid rgba(237, 23, 31, 0.7);
    border-radius: 50%;
    background: rgba(237, 23, 31, 0.08);
    color: var(--color-red);
    font-size: 44px;
    box-shadow: 0 0 45px rgba(237, 23, 31, 0.12);
}

.success-modal h2 {
    max-width: 560px;
    margin: 0 auto 20px;
    font-size: clamp(34px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    text-align: center;
}

.success-modal p {
    max-width: 440px;
    margin: 0 auto 36px;
    color: #aaa;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

.success-modal button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 28px;
    border: 1px solid var(--color-red);
    border-radius: 5px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Eliminăm săgeata decorativă */
.success-modal button::after {
    content: none;
    display: none;
}

.success-modal button:hover {
    background: var(--color-red-hover);
    box-shadow: 0 8px 30px rgba(237, 23, 31, 0.2);
    transform: translateY(-2px);
}

.success-modal button:hover::after {
    content: none;
    display: none;
}

.success-modal h2,
.success-modal p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes successRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.success-brand {
    color: inherit;
    font-weight: 700;
}

.success-brand-x {
    color: var(--color-red);
}



/* FOOTER WEBX */
.site-footer {
    padding-top: 25px;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-main);
}

.site-footer .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
}

/* Logo */
.site-footer .footer-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.site-footer .footer-logo {
    display: block;
    flex: 0 0 215px;
    width: 215px;
    max-width: 100%;
    height: auto;
}

/* Navigație */
.site-footer .footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.site-footer .footer-nav a {
    position: relative;
    padding: 10px 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.4;
    text-decoration: none;
}


.site-footer .footer-nav a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    background: var(--color-red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.site-footer .footer-nav a:hover::after {
    transform: scaleX(1);
}

/* Rețele sociale */
.site-footer .footer-socials {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.site-footer .footer-socials a {
    display: flex;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 21px;
    text-decoration: none;
    transition: background 0.35s ease, border-color 0.35s ease,
        color 0.35s ease, transform 0.35s ease;
}

.site-footer .footer-socials a i {
    line-height: 1;
}

.site-footer .footer-socials a:hover {
    border-color: var(--color-red);
    background: var(--color-red);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Bara de jos */
.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 25px;
}

.site-footer .footer-bottom p,
.site-footer .footer-bottom nav a {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 400;
}

.site-footer .footer-bottom p {
    margin: 0;
    line-height: 1.7;
}

.site-footer .footer-bottom nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer .footer-bottom nav a {
    position: relative;
    text-decoration: none;
}

.site-footer .footer-bottom nav a::after {
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    background: var(--color-red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.site-footer .footer-bottom nav a:hover::after {
    transform: scaleX(1);
}

.site-footer .footer-bottom nav a:hover {
    color: var(--color-muted);
}

/* Accesibilitate */
.site-footer a:focus-visible {
    outline: 3px solid rgb(237 23 31 / 45%);
    outline-offset: 3px;
}

.site-footer .footer-x {
    color: var(--color-red);
}

/* =========================
   WHATSAPP FLOATING BUTTON
========================= */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color-white);
    border: 2px solid var(--color-whatsapp);
    border-radius: 999px;
    padding: 0;

    overflow: hidden;
    text-decoration: none;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .20);

    transition: width .35s ease, transform .35s ease,
        box-shadow .35s ease;

    z-index: 9998;
}

.whatsapp-float:hover {
    width: 195px;
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .28);

}

.whatsapp-float i {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    width: 46px;
    height: 46px;
    font-size: 32px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    background: var(--color-whatsapp);
    color: var(--color-white);

    transition: left .35s ease, transform .35s ease;
}

.whatsapp-float:hover i {
    left: 22px;
    transform: none;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    opacity: 0;
    white-space: nowrap;
    margin-left: 55px;
    transition: opacity .25s ease;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
}

.whatsapp-text strong {
    color: var(--color-text);
    font-size: 17px;
    font-weight: 800;
}

.whatsapp-text span {
    color: var(--color-muted);
    font-size: 14px;
}

/* Pe dispozitivele fără hover, butonul rămâne compact */
@media (hover: none) {

    .whatsapp-float,
    .whatsapp-float:hover,
    .whatsapp-float:active,
    .whatsapp-float:focus {
        width: 54px;
        height: 54px;
        transform: none;
    }

    .whatsapp-float i,
    .whatsapp-float:hover i,
    .whatsapp-float:active i,
    .whatsapp-float:focus i {
        left: 50%;
        transform: translateX(-50%);
    }

    .whatsapp-float .whatsapp-text {
        display: none;
    }
}



/* =========================
   WEBX - COOKIE BANNER
========================= */

/* Fundalul care blochează pagina */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}


.cookie-overlay[hidden] {
    display: none;
}

/* Bannerul rămâne clar și interactiv */
.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    max-width: 1050px;
    margin-inline: auto;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 12px 40px rgb(0 0 0 / 14%);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cookie-content h2 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -0.3px;
}

.cookie-content p {
    max-width: 600px;
    margin: 0;
    font-size: 13px;
}

.cookie-content p a {
    color: var(--color-red);
    font-weight: 700;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-actions .button {
    font-size: 12px;
}

/* Nu permite derularea cât timp alegerea este obligatorie */
body.cookie-consent-open {
    overflow: hidden;
}


.legal-back-wrapper {
    display: block;
    margin-bottom: 28px;
}


.legal-back-wrapper {
    margin-bottom: 32px;
}


/* Back button from Legal folder */
.legal-back-wrapper {
    margin-bottom: 32px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--color-red);
    border-radius: 8px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.back-button i {
    color: var(--color-white);
    transition: transform 0.35s ease;
}

.back-button:hover {
    background: var(--color-red-hover);
    border-color: var(--color-red-hover);
    color: var(--color-white);
}

.back-button:hover i {
    transform: translateX(-3px);
}



/* ========================================
   RESPONSIVE - TABLETA
   Ecrane de maximum 1000px
======================================== */
@media (max-width: 1000px) {

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-benefits {
        gap: 15px;
    }

    /* Servicii */
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Portofoliu */
    .portfolio-card {
        grid-template-columns: 1fr;
    }

    .portfolio-info {
        padding: 22px 22px 0;
    }

    .portfolio-image {
        min-height: 180px;
    }

    /* Titlurile sectiunilor */
    .section-heading {
        align-items: flex-start;
    }

    /* Footer */
    .site-footer .footer-bottom {
        flex-wrap: wrap;
    }

}



/* ========================================
   WEBX - MENIU TABLETĂ ȘI MOBIL
   Ecrane de maximum 900px
======================================== */
@media (max-width: 900px) {

    /* Header */
    .header-inner {
        position: relative;
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    /* Meniu mobil */
    .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 101;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 18px 20px 20px;
        border: 1px solid var(--color-border);
        border-radius: 0 0 12px 12px;
        background: var(--color-white);
        box-shadow: 0 14px 28px rgb(0 0 0 / 9%);
    }

    .main-navigation.is-open {
        display: flex;
    }

    /* Linkuri */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-navigation .nav-link {
        display: block;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-border);
        text-align: center;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }

    .main-navigation .nav-link::after {
        display: none;
    }

    /* Ascunde CTA-ul original pe mobil */
    .main-navigation>.header-cta {
        display: none;
    }

    /* Card de contact */
    .mobile-nav-card {
        display: block;
        margin-top: 20px;
        padding: 20px 18px;
        border: 1px solid #292929;
        border-radius: 14px;
        background:
            radial-gradient(ellipse at top right,
                rgb(100 110 115 / 35%) 0%,
                transparent 55%),
            linear-gradient(145deg, #171b1d 0%, #000 75%);
        box-shadow: 0 3px 0 #d9d9d9;
    }

    /* Text și săgeată WhatsApp */
    .mobile-nav-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        color: #fff;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.4;
        text-decoration: none;
    }

    .mobile-nav-arrow {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 5px;
        background: var(--color-red);
        color: #fff;
        font-size: 32px;
        transition: transform 0.2s ease;
    }

    .mobile-nav-cta:hover .mobile-nav-arrow {
        transform: translateX(4px);
    }

    .mobile-nav-cta:active .mobile-nav-arrow {
        transform: translateX(2px);
    }

    /* Rețele sociale */
    .mobile-nav-socials {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-top: 18px;
        padding-top: 12px;
        border-top: 1px solid #252525;
    }

    .mobile-nav-socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid transparent;
        border-radius: 50%;
        color: #fff;
        font-size: 28px;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .mobile-nav-socials a:hover {
        color: var(--color-red);
        background: #1a1a1a;
    }

    /* Footer */
    .footer-main {
        flex-wrap: wrap;
    }

    .footer-top {
        min-width: 0;
        box-sizing: border-box;
    }

    .site-footer .footer-socials {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}



/* Tableta portrait */
@media (min-width: 701px) and (max-width: 900px) {
    .mobile-nav-cta {
        gap: 25px;
    }

    .main-navigation.is-open {
        width: 48%;
        left: auto;
        right: 0;
    }
}



/* ========================================
   RESPONSIVE - TELEFON
   Ecrane de maximum 700px
======================================== */
@media (max-width: 700px) {

    /* Structura generala */
    .container {
        width: calc(100% - 36px);
    }

    .section {
        padding: 58px 0;
    }

    h1 {
        font-size: clamp(36px, 9vw, 48px);
    }

    h2 {
        font-size: clamp(29px, 7vw, 36px);
    }

    .hero-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .hero-actions .button-primary {
        margin-left: 0;
    }

    .hero-actions .button-secondary {
        margin-right: 0;
        margin-left: 0;
    }


    .legal-back-wrapper {
        position: relative;
        z-index: 1;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 45px;
        padding-bottom: 35px;
    }

    .hero-content h1 {
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-visual {
        margin-top: 12px;
    }

    .hero-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 28px;
        width: 100%;
    }

    .benefit p br {
        display: none;
    }

    .benefit:first-child {
        padding-left: 16px;
    }

    .benefit:last-child {
        border-right: 2px solid var(--color-gray);
    }

    /* Titlurile sectiunilor */
    .section-heading {
        display: grid;
        gap: 15px;
        margin-bottom: 25px;
    }

    /* Servicii */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .service-card {
        padding: 22px;
    }

    /* Portofoliu */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-image {
        min-height: 170px;
    }

    /* Despre si contact */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-visual {
        order: -1;
    }

    /* Formular */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Header si logo */
    .brand-name {
        font-size: 25px;
    }

    .brand-tagline {
        font-size: 7px;
    }

    /* Footer */
    .footer-main {
        align-items: flex-start;
    }

    .footer-navigation {
        width: 100%;
        gap: 14px 20px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom nav {
        flex-direction: column;
        gap: 10px;
    }

    /* Cookies banner */
    .cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 18px;
    }

    .cookie-content {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-actions .button {
        width: 100%;
    }

}



/* ========================================
   RESPONSIVE - TELEFON MIC
   Ecrane de maximum 600px
======================================== */
@media (max-width: 600px) {

    /* Buton WhatsApp */
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }

    /* Footer */
    .site-footer .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 18px;
        padding: 20px 0;
    }

    /* Navigatie - linkuri legale */
    .site-footer .footer-bottom nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
    }

    .site-footer .footer-bottom nav a {
        display: block;
        width: auto;
        max-width: 100%;
        padding: 0;
        white-space: nowrap;
    }

    .site-footer .footer-bottom .footer-separator {
        display: none;
    }

    /* Ascunde navigatia duplicata din footer */
    .site-footer .footer-top .footer-navigation,
    .site-footer .footer-top nav {
        display: none;
    }
}



/* Ascunde elementele exclusiv mobile pe desktop */
@media (min-width: 901px) {
    .mobile-nav-links {
        display: contents;
    }

    .mobile-nav-card {
        display: none;
    }
}