/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Partner Badge */
.partner-badge {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* Header */
header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #a93226;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.contact-header p {
    margin: 5px 0;
}

.phone {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
    padding: 5px;
    background: #e74c3c;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Navigation */
.main-nav {
    background: #2c3e50;
}

.main-nav ul {
    display: flex;
    align-items: center;
    height: 56px;
}

.main-nav ul > li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

.main-nav ul > li.lang-switcher-desktop {
    padding: 0;
    border-right: none;
    box-sizing: border-box;
}

.main-nav ul li:first-child {
    border-left: 1px solid #34495e;
}

.main-nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.main-nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #e74c3c;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav ul li:hover {
    background: rgba(231, 76, 60, 0.1);
}

.main-nav ul li a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.main-nav ul li a:hover:before {
    width: 100%;
}

.main-nav ul li a.active {
    background: rgba(231, 76, 60, 0.2);
    color: #fff;
}

.main-nav ul li a.active:before {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
    gap: 30px;
    min-height: 400px;
}

.hero-text {
    flex: 1;
    position: relative;
    padding: 0;
    background: none;
    color: #333;
    max-width: 50%;
}

.hero-image {
    flex: 1.2;
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    background: none;
    display: flex;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: none;
}

.hero-text h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-text p {
    color: #555;
    margin-bottom: 15px;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.hero-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(.4,2,.6,1);
    color: white;
    font-size: 20px;
    min-width: 220px;
    box-shadow: 0 6px 24px rgba(44,62,80,0.10), 0 1.5px 4px rgba(44,62,80,0.08);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%);
    letter-spacing: 0.5px;
    border: none;
}

.hero-button svg {
    margin-right: 12px;
    width: 28px;
    height: 28px;
}

.hero-button:active, .hero-button:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 10px 32px rgba(44,62,80,0.13), 0 2px 8px rgba(44,62,80,0.10);
    filter: brightness(1.05);
}

.phone-button {
    background-color: #e74c3c;
}

.phone-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.whatsapp-button {
    background-color: #25D366;
}

.whatsapp-button:hover {
    background-color: #20bd5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Main Content */
main {
    padding: 30px;
}

/* Services Section */
.services {
    margin-bottom: 40px;
}

.section-title {
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    color: #2c3e50;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #e74c3c;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
}

.service-card {
    width: calc(33.33% - 17px);
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

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

.service-card-content {
    padding: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: #e74c3c;
    font-size: 18px;
    font-weight: 600;
}

.service-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.service-img-responsive {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    margin-bottom: 16px;
    object-fit: cover;
    aspect-ratio: 16/11;
    max-height: 320px;
}

@media (max-width: 980px) {
    .service-img-responsive {
        max-height: 260px;
        aspect-ratio: 16/12;
    }
}

@media (max-width: 576px) {
    .service-img-responsive {
        max-height: 220px;
        aspect-ratio: 16/13;
    }
}

/* About Section */
.about {
    margin-bottom: 40px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.about p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Prices Section */
.prices {
    margin-bottom: 40px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.prices ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.prices ul li {
    margin-bottom: 8px;
}

/* Contact Section */
.contact {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-grid {
    display: flex;
    gap: 30px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.contact-form {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e74c3c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select:focus {
    border-color: #e74c3c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group select option {
    padding: 10px;
}

.form-group select optgroup {
    font-weight: 600;
    color: #2c3e50;
    padding: 10px 0;
}

.form-group select optgroup option {
    font-weight: normal;
    padding-left: 20px;
}

.submit-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #bdc3c7;
}

.footer-company-info {
    margin-top: 12px;
    font-size: 15px;
    color: #eaeaea;
    text-align: center;
    line-height: 1.7;
}
.footer-company-info strong {
    color: #fff;
    font-weight: 600;
}
.footer-link {
    color: #e74c3c;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #c0392b;
}

.footer-link.no-style-link {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-link.no-style-link:hover {
    color: #e74c3c !important;
    text-decoration: underline !important;
}

/* Scroll to Top Button - More Spacing from Corner */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #e74c3c;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.scroll-to-top svg {
    width: 26px;
    height: 26px;
}

/* ======= MOBILE STYLES ======= */

@media (max-width: 980px) {
    .container {
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 10px;
    }
    
    .logo {
        font-size: 2.1rem;
        margin-bottom: 10px;
        margin-top: 8px;
        line-height: 1.1;
    }
    .partner-badge {
        margin-left: 0;
        margin-top: 8px;
        display: block;
        font-size: 13px;
        padding: 5px 14px;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }
    .contact-header {
        align-items: center;
        text-align: center;
        margin-top: 10px;
        gap: 0;
    }
    .phone,
    .contact-header p:last-of-type {
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        margin: 8px 0 2px 0;
        letter-spacing: 1px;
    }
    .contact-header .lang-switcher-mobile-header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;
        margin: 8px 0 0 0;
        width: 100%;
    }
    .lang-switcher-mobile-header a {
        padding: 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
        outline: none;
        filter: none;
        animation: none;
        transition: none;
        display: inline-block;
    }
    .lang-switcher-mobile-header svg {
        width: 40px;
        height: 28px;
        display: block;
        box-shadow: 0 1px 4px rgba(44,62,80,0.07);
        border-radius: 4px;
    }
    
    .main-nav ul {
        height: 54px;
    }
    
    .main-nav ul li {
        height: 54px;
        padding-right: 10px;
    }
    
    .main-nav ul li:first-child {
        border-left: none;
    }
    
    .service-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .contact-grid {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #2c3e50;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 15px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding-top: 80px;
    }

    .main-nav ul li {
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav ul li:first-child {
        border-left: none;
    }

    .main-nav ul li a {
        padding: 20px 25px;
        font-size: 18px;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: transparent;
        transition: all 0.3s ease;
    }

    .main-nav ul li a:hover {
        background: rgba(231, 76, 60, 0.2);
        padding-left: 35px;
    }

    .main-nav ul li a:before {
        display: none;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 999;
        backdrop-filter: blur(3px);
    }

    .nav-overlay.active {
        display: block;
    }

    .lang-switcher-mobile {
        display: flex !important;
        width: 100%;
        justify-content: center;
        align-items: center;
        margin: 18px 0 8px 0;
        padding: 0;
    }
    .lang-switcher-desktop {
        display: none !important;
    }
    .main-nav .lang-switcher {
        justify-content: center;
        align-items: center;
        gap: 18px;
        display: flex;
        width: 100%;
        margin: 0 auto;
    }
    .main-nav .lang-switcher a,
    .main-nav .lang-switcher a:active,
    .main-nav .lang-switcher a:focus,
    .main-nav .lang-switcher a:hover {
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        transition: none !important;
        outline: none !important;
        filter: none !important;
        animation: none !important;
    }
    .main-nav .lang-switcher svg {
        width: 32px;
        height: 22px;
        border-radius: 0;
        background: none;
        box-shadow: none;
        display: inline-block;
        vertical-align: middle;
        opacity: 1;
    }
}
@media (min-width: 981px) {
    .contact-header .lang-switcher-mobile-header {
        display: none !important;
    }
    .lang-switcher-mobile {
        display: none !important;
    }
    .lang-switcher-desktop {
        display: flex !important;
    }
    .main-nav ul > li.lang-switcher-desktop:hover,
    .main-nav ul > li.lang-switcher-desktop:focus,
    .main-nav ul > li.lang-switcher-desktop:active,
    .lang-switcher-desktop .lang-switcher a:hover,
    .lang-switcher-desktop .lang-switcher a:focus,
    .lang-switcher-desktop .lang-switcher a:active {
        background: none !important;
        box-shadow: none !important;
        outline: none !important;
        border-radius: 0 !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }
}
/* Elimină efectul roșu de hover/focus de pe steaguri */
.lang-switcher a:hover,
.lang-switcher a:focus,
.lang-switcher a[aria-current="page"] {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.lang-switcher a:hover svg,
.lang-switcher a:focus svg,
.lang-switcher a[aria-current="page"] svg {
    filter: none !important;
}

/* ===== HERO MOBILE STYLES ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 15px 0;
        gap: 20px;
        min-height: auto;
        overflow-x: hidden;
    }
    
    .hero-text {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .hero-image {
        height: 180px;
        width: calc(100% - 30px);
        max-width: 400px;
        margin: 0 auto;
    }

    /* BUTTON FIX - CRITICAL */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 0 15px;
        margin-top: 20px;
    }
    
    .hero-button {
        width: 100%;
        max-width: none;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 0;
        font-size: 18px;
        margin: 0;
        border-radius: 20px;
    }
    
    .hero-button svg {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }
    
    /* Ensure buttons scale properly */
    main {
        padding: 20px 15px;
    }

    /* Scroll to top button adjustments */
    .scroll-to-top {
        width: 56px;
        height: 56px;
        bottom: 28px;
        right: 24px;
    }
    .scroll-to-top svg {
        width: 30px;
        height: 30px;
    }
}

/* Smaller screens */
@media (max-width: 576px) {
    .hero-text {
        padding: 0 10px;
    }
    
    .hero-buttons {
        gap: 10px;
        padding: 0 10px;
    }
    
    .hero-button {
        padding: 14px 0;
        font-size: 16px;
    }
    
    main {
        padding: 15px 10px;
    }

    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 16px;
    }
    .scroll-to-top svg {
        width: 24px;
        height: 24px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-text p {
        font-size: 14px;
    }
    
    .hero-buttons {
        padding: 0 8px;
    }
    
    .hero-button {
        padding: 12px 0;
        font-size: 15px;
    }
    
    .hero-button svg {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    main {
        padding: 12px 8px;
    }
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px auto;
}

.a24-partener {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #f9f9f9;
    border: 1.5px solid #e74c3c;
    border-radius: 10px;
    padding: 24px 32px;
    margin: 32px 0 40px 0;
    box-shadow: 0 2px 12px rgba(231,76,60,0.06);
}
.a24-logo {
    width: 140px;
    min-width: 100px;
    height: auto;
    display: block;
}
.a24-desc {
    font-size: 1.08rem;
    color: #2c3e50;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}
.a24-desc strong {
    color: #e74c3c;
}
@media (max-width: 768px) {
    .a24-partener {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 12px;
        gap: 14px;
    }
    .a24-logo {
        width: 110px;
        min-width: 80px;
        margin: 0 auto;
        display: block;
    }
    .a24-desc {
        font-size: 1rem;
        width: 100%;
    }
}

/* Uniformizare meniu pe toate limbile */
.main-nav .lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}
.main-nav .lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-shrink: 0;
}
.main-nav .lang-switcher svg {
    width: 32px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
}
.main-nav ul > li.lang-switcher-desktop {
    padding-right: 32px;
    padding-left: 16px;
    border-right: none;
}

@media (max-width: 600px) {
    .footer-company-info {
        font-size: 13px;
        padding: 0 8px;
    }
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    justify-items: center;
    align-items: start;
}
.about-gallery a {
    display: block;
    width: 100%;
}
.about-gallery img {
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(44,62,80,0.10);
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #f5f5f5;
    transition: transform 0.2s;
    aspect-ratio: 16/11;
}
.about-gallery img:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 8px 32px rgba(44,62,80,0.13);
}
@media (max-width: 900px) {
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .about-gallery img {
        aspect-ratio: 16/12;
    }
}
@media (max-width: 600px) {
    .about-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .about-gallery img {
        aspect-ratio: 16/13;
    }
}