/* Elite-Construct Custom Styles */

/* Mobile Excellence Video Styles - VERTICAL FORMAT */
.mobile-video-container {
    display: none;
    position: relative;
    width: 100%;
    max-width: 90%; /* Same width as advantage cards */
    height: 400px; /* Vertical format height */
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mobile-excellence-video {
    width: 100%;
    height: 400px; /* Vertical format height */
    object-fit: cover; /* Maintain aspect ratio */
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-excellence-video.loaded {
    opacity: 1;
}

.video-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px; /* Vertical format height same as video */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-loading-placeholder.hidden {
    opacity: 0;
}

.video-loading-placeholder i {
    font-size: 2rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Show video only on mobile devices - with fixed spacing */
@media (max-width: 768px) {
    .mobile-video-container {
        display: block;
        margin-top: 4rem; /* More space from hero section */
        margin-bottom: 4rem; /* More space before advantages */
    }

    /* Next section - spacing after hero */
    .section-padding.bg-light {
        padding-top: 3rem !important;
        margin-top: 0rem !important;
    }

    /* Hero content positioning on mobile */
    .hero-content {
        position: relative;
        z-index: 3 !important;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    /* Hero buttons positioning */
    .hero-buttons {
        position: relative;
        z-index: 3 !important;
    }

    /* Contact form - REMOVED - moved to end of file */

    /* Mobile hero layout containers */
    .hero-section .container {
        position: relative !important;
        z-index: 2 !important;
        height: auto !important; /* Auto height */
        max-height: none !important;
        display: block !important; /* Normal flow */
        align-items: unset !important;
        padding-top: 0 !important; /* No extra padding */
        padding-bottom: 0 !important;
        overflow-y: visible !important; /* No internal scroll */
    }

    /* Mobile row layout */
    .hero-section .row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important; /* Stack columns vertically */
    }

    /* Ensure columns are properly stacked on mobile */
    .hero-section .col-lg-6 {
        margin-bottom: 2rem !important;
        padding: 0 15px !important;
        width: 100% !important;
        float: none !important;
    }

    .hero-section .col-lg-6:last-child {
        margin-bottom: 0 !important;
    }
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c2c2c;
    --secondary-color: #ffffff;
    --accent-color: #fa961e;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #fa961e 0%, #e6850e 100%);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes for scroll triggers */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
}

.fade-up {
    transform: translateY(30px);
}

.fade-up.animate-in {
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-left.animate-in {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(30px);
}

.fade-right.animate-in {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.9);
}

.scale-in.animate-in {
    transform: scale(1);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-color);
    background: #f8f9fa;
    overflow-x: hidden;
    font-display: swap;
}

.main-content {
    padding-top: 80px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .main-content {
        padding-bottom: 20px;
    }
}

/* Glass Effect Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card {
    transition: none;
    transform: none !important;
}

.glass-card:hover {
    transform: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Modern hover effects for cards */
.advantage-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.advantage-card .icon {
    transition: all 0.3s ease;
}

.advantage-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Footer Logo Styling */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.brand-text {
    font-family: var(--font-display);
    margin-left: 0.5rem;
}

.navbar-brand i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    background: rgba(212, 175, 55, 0.1);
}

.nav-link i {
    opacity: 0.7;
}

/* Mobile Hamburger */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: var(--transition);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Collapse */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 0;
        z-index: 1000;
    }

    .navbar-nav {
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-radius: 10px !important;
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .nav-link i {
        margin-right: 0.75rem;
        opacity: 1;
        width: 20px;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero row - responsive height */
.hero-row {
    min-height: 100vh;
}

@media (max-width: 768px) {
    .hero-row {
        min-height: auto !important; /* Remove fixed height */
        padding: 100px 0 60px 0 !important; /* More top space for header */
        display: block !important; /* Normal flow */
        align-items: unset !important;
    }

    .hero-section {
        min-height: auto !important; /* Remove fixed height */
        height: auto !important; /* Auto height based on content */
        padding: 100px 0 40px 0 !important; /* Top space for header */
        color: white;
        position: relative;
        overflow: visible !important; /* Allow content to flow */
        z-index: 1 !important;
        display: block !important; /* Normal flow */
        align-items: unset !important;
    }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    content-visibility: auto;
    contain-intrinsic-size: 1920px 1080px;
}

/* Page-specific hero backgrounds */
body.page-index .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%), 
                url('attached_assets/13_1754597452076.jpeg');
    background-size: cover;
    background-position: center;
}

body.page-proiecte .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%), 
                url('attached_assets/3_1754597452077.jpeg');
    background-size: cover;
    background-position: center;
}

body.page-testimoniale .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%), 
                url('attached_assets/10_1754597452077.jpeg');
    background-size: cover;
    background-position: center;
}

body.page-contact .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%), 
                url('attached_assets/5_1754597452077.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    letter-spacing: -0.01em;
    text-transform: none;
    z-index: 2 !important; /* Ensure content is above background */
    position: relative;
}

.hero-content h2 {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 300;
    margin-bottom: 1.8rem;
    opacity: 0.85;
    letter-spacing: 0.04em;
    font-style: italic;
    position: relative;
    z-index: 2 !important;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    position: relative;
    z-index: 2 !important;
}

/* Quick Form */
.quick-form {
    background: rgba(255, 255, 255, 0.98);
    /* backdrop-filter: blur(20px); */ /* Removed to eliminate paralax effects */
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: var(--primary-color);
}

.quick-form h3 {
    font-family: var(--font-display);
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.form-floating label {
    color: rgba(44, 44, 44, 0.7);
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-select {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(250, 150, 30, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(250, 150, 30, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: var(--gradient-accent);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.01em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.9rem;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.1);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(44, 44, 44, 0.7);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Advantages Section */
.advantage-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.advantage-card .icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-light);
}

.advantage-card h4 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.advantage-card p {
    color: rgba(44, 44, 44, 0.7);
    line-height: 1.6;
}

/* Process Section */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    z-index: 1;
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-light);
}

.process-step h4 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-step p {
    color: rgba(44, 44, 44, 0.7);
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 400px;
    image-rendering: optimizeQuality;
    content-visibility: auto;
    contain-intrinsic-size: 400px 300px;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 44, 44, 0.9) 0%, rgba(212, 175, 55, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    height: 100%;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(44, 44, 44, 0.8);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-location {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    color: white;
    transform: scale(1.1);
}

/* Mobile WhatsApp Float */
.whatsapp-float-mobile {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1050;
}

.whatsapp-btn-mobile {
    width: 50px;
    height: 50px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn-mobile:hover {
    background: #20ba5a;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Modal Navigation Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

@media (max-width: 768px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-nav-prev {
        left: 10px;
    }

    .modal-nav-next {
        right: 10px;
    }
}

/* Mobile Actions */
.mobile-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 10px;
}

.mobile-action-btn:hover {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.mobile-action-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.mobile-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-title i {
    color: var(--accent-color);
}

.footer-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links a i {
    opacity: 0.5;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright-text {
    opacity: 0.7;
    margin: 0;
}

.footer-legal .legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-legal .legal-link:hover {
    color: var(--accent-color);
}

.separator {
    margin: 0 1rem;
    opacity: 0.5;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Process Cards */
.process-card {
    padding: 2rem;
    text-align: center;
    margin-bottom: 0;
}

.process-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(250, 150, 30, 0.25);
}

.process-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.process-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(44, 44, 44, 0.7);
}

/* Modern Testimonial Cards */
.testimonial-card-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    position: relative;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(250, 150, 30, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.testimonial-quote {
    margin-bottom: 1.5rem;
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-style: italic;
}

.testimonial-author h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: rgba(44, 44, 44, 0.6);
}

/* CTA Section Styling */
.cta-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* CTA Section Text Centering */
.section-padding.bg-dark .col-lg-6:first-child h2,
.section-padding.bg-dark .col-lg-6:first-child .lead {
    text-align: center;
}

@media (min-width: 992px) {
    .section-padding.bg-dark .col-lg-6:first-child h2,
    .section-padding.bg-dark .col-lg-6:first-child .lead {
        text-align: left;
    }

    /* Desktop - use original contact info layout */
    .contact-info-cta-mobile {
        background: none;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-width: none;
        border: none;
    }

    .contact-info-cta-mobile .contact-item-cta {
        text-align: left;
        justify-content: flex-start;
    }
}

.cta-form-container h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
}

.contact-info-cta {
    margin-top: 2rem;
}

.contact-item-cta {
    display: flex;
    align-items: flex-start;
}

.contact-item-cta i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    width: 20px;
}

.contact-item-cta strong {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
    color: white;
}

.contact-item-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Hero Image Container */
.hero-image-container {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-image-container svg {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Hero Background SVG */
.hero-background-section {
    display: none; /* Hidden by default, can be used for custom backgrounds */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Service Cards */
.service-card {
    padding: 2.5rem;
    text-align: center;
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-light);
}

.service-card h4 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: rgba(44, 44, 44, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding-bottom: 0px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .process-step::before {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 90px;
    }

    .whatsapp-float {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .quick-form {
        padding: 2rem !important; /* Override conflicting rules */
        z-index: 25 !important; /* Even higher on small screens */
    }

    .advantage-card,
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading-spinner {
    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); }
}

/* Form Success/Error States */
.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-accent {
    color: var(--accent-color) !important;
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* Modern Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.portfolio-item-modern {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: var(--color-white);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.portfolio-item-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(250, 150, 30, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.portfolio-image-modern {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.portfolio-item-modern:hover .portfolio-image-modern {
    transform: scale(1.08);
}

/* Refined Typography for all sections */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }

    /* Final CTA section - reduce bottom padding on mobile */
    .section-padding.bg-dark {
        padding-bottom: 0px;
        margin-bottom: 0px;
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 500;
    margin-bottom: 1.2rem;
    text-align: center;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-align: center;
    margin-bottom: 3.5rem;
    color: rgba(44, 44, 44, 0.7);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 15px;
        margin-top: 50px;
    }

    .portfolio-image-modern {
        height: 280px;
    }

    .section-padding {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .portfolio-grid-modern {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portfolio-image-modern {
        height: 280px;
    }

    .section-padding {
        padding: 80px 0;
    }
}

/* Fix for contact page visibility issues */
.contact-details h6 {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--primary-color) !important;
    margin: 0;
}

.contact-link {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--accent-color) !important;
}

/* Social media icons with orange background and white icons */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fa961e !important;
    color: white !important;
    border-radius: 50%;
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e8831a !important;
    color: white !important;
    transform: translateY(-2px) scale(1.1);
}

.social-link i {
    color: white !important;
    font-size: 16px;
}

/* CTA Form Container for Services Page */
.cta-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-cta {
    margin-bottom: 2rem;
}

.contact-item-cta {
    display: flex;
    align-items: center;
    color: white;
}

.contact-item-cta i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
}

.contact-item-cta strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item-cta p {
    margin: 0;
    opacity: 0.9;
}

/* Optimized hero backgrounds */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(249, 150, 30, 0.6) 50%, rgba(26, 26, 26, 0.8) 100%),
                      url("/assets/images/hero-home.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Page-specific hero backgrounds */
.page-projects .hero-section {
    background-image: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(249, 150, 30, 0.6) 50%, rgba(26, 26, 26, 0.8) 100%),
                      url("/assets/images/hero-projects.jpg");
}

.page-services .hero-section {
    background-image: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(249, 150, 30, 0.6) 50%, rgba(26, 26, 26, 0.8) 100%),
                      url("/assets/images/hero-kitchen.jpg");
}

.page-contact .hero-section {
    background-image: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(249, 150, 30, 0.6) 50%, rgba(26, 26, 26, 0.8) 100%),
                      url("/assets/images/hero-bathroom.jpg");
}


/* Remove heavy animations that slow down the site */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Optimize portfolio hover effects */
.portfolio-item {
    transition: transform 0.2s ease !important;
}

.portfolio-item:hover {
    transform: scale(1.02) !important;
}

/* Remove complex backdrop filters for better performance */
.glass-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Simplify gradient backgrounds */
.hero-section {
    background: linear-gradient(135deg, #2c2c2c 0%, #fa961e 50%, #1a1a1a 100%) !important;
}

/* Fix contact page text colors */
.contact-details h6 {
    color: #2c2c2c !important;
}

.contact-details p {
    color: #2c2c2c !important;
}

.contact-link {
    color: #2c2c2c !important;
    text-decoration: none;
}

.contact-link:hover {
    color: #fa961e !important;
}

/* Social media icons accent color */
/* Remove old social icon styles - replaced above */
.social-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}


/* Hero section backgrounds for all pages */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-home.jpg") center/cover no-repeat !important;
}

/* Page-specific hero backgrounds */
body.page-acasa .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-home.jpg") center/cover no-repeat !important;
}

body.page-proiecte .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-projects.jpg") center/cover no-repeat !important;
}

body.page-servicii .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-services.jpg") center/cover no-repeat !important;
}

body.page-contact .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-contact.jpg") center/cover no-repeat !important;
}

body.page-despre-noi .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-bathroom.jpg") center/cover no-repeat !important;
}

body.page-testimoniale .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-kitchen.jpg") center/cover no-repeat !important;
}


/* Force hero backgrounds with higher specificity */
body.page-index .hero-section,
body.page-acasa .hero-section,
.hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-home.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-proiecte .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-projects.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-servicii .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-services.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-contact .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-contact.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-despre-noi .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-bathroom.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-testimoniale .hero-section {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(249, 150, 30, 0.5) 50%, rgba(26, 26, 26, 0.7) 100%), 
                url("/assets/images/hero-kitchen.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}


/* Mobile header contact buttons */
.mobile-header-actions {
    display: flex;
    gap: 8px;
    margin-right: 10px;
}

.mobile-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fa961e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(250, 150, 30, 0.3);
}

.mobile-header-btn:hover {
    background: #e8831a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(250, 150, 30, 0.4);
}

.mobile-header-btn i {
    font-size: 16px;
}

/* Ensure hamburger button has enough space */
.navbar-toggler {
    margin-left: 10px;
}

/* Hide mobile bottom actions when header actions are visible */
@media (max-width: 991.98px) {
    .mobile-actions {
        display: none !important;
    }

    /* Ensure footer content is accessible above mobile actions */
    .site-footer {
        margin-bottom: 0;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    /* Mobile contact info styling */
    .contact-info-cta-mobile {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 20px;
        margin: 2rem auto;
        max-width: 300px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 2;
        clear: both;
    }

    .contact-info-cta-mobile .contact-item-cta {
        display: flex;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }

    .contact-info-cta-mobile .contact-item-cta div {
        text-align: left;
    }

    .contact-info-cta-mobile .contact-item-cta p {
        margin: 0;
        text-align: left;
    }

    .contact-info-cta-mobile .contact-item-cta a {
        color: var(--accent-color) !important;
        text-decoration: none;
    }

    .contact-info-cta-mobile .contact-item-cta a:hover {
        color: white !important;
        text-decoration: underline;
    }

    /* Footer legal links - ensure they're clickable */
    .footer-legal {
        position: relative;
        z-index: 1001;
        padding-bottom: 10px;
    }

    .footer-legal .legal-link {
        display: inline-block;
        padding: 8px 4px;
        position: relative;
        z-index: 1002;
    }
}


/* Mobile header contact buttons - smaller and centered between logo and hamburger */
.mobile-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0 10px;
}

.mobile-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    color: #2c2c2c;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.mobile-header-btn:hover {
    background: rgba(44, 44, 44, 0.1);
    color: #2c2c2c;
    transform: none;
}

.mobile-header-btn i {
    font-size: 16px;
}

/* Update hamburger button styling to match */
.navbar-toggler {
    border: none !important;
    padding: 4px 8px;
    background: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #2c2c2c;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Ensure mobile navbar layout is on single line */
@media (max-width: 991.98px) {
    .navbar > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .navbar-brand {
        flex-shrink: 0;
    }
}


/* Hero sections without overlay - clean backgrounds */
body.page-index .hero-section,
body.page-acasa .hero-section,
.hero-section {
    background: url("/attached_assets/13_1754597452075.jpeg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-proiecte .hero-section {
    background: url("/attached_assets/3_1754597452078.jpeg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-servicii .hero-section {
    background: url("/assets/images/hero-services.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-contact .hero-section {
    background: url("/attached_assets/9WhatsApp Image 2025-08-08 at 14.25.50_1754661628577.jpeg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-despre-noi .hero-section {
    background: url("/assets/images/hero-bathroom.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

body.page-testimoniale .hero-section {
    background: url("/assets/images/hero-kitchen.jpg") center/cover no-repeat !important;
    background-attachment: scroll !important;
}

/* Overlay only under text content */
.hero-content {
    background: rgba(44, 44, 44, 0.6);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Mobile hero content override */
@media (max-width: 768px) {
    .hero-content {
        background: rgba(44, 44, 44, 0.7) !important;
        padding: 2rem !important;
        margin-top: 2rem !important; /* Space from top */
        margin-bottom: 2rem !important;
        z-index: 5 !important;
        position: relative !important;
        text-align: center !important;
    }
}

/* Footer Styling */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 40px;
    margin-top: 60px;
}

.footer-section {
    height: 100%;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    text-align: left;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links i {
    font-size: 12px;
    opacity: 0.6;
}

.contact-info {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: white !important;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 40px 0 30px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: var(--accent-color);
}

.separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile footer styles */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-subtitle {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .copyright-text {
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 15px;
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-legal .separator {
        display: none;
    }

    /* Center hero content on mobile */
    .hero-content {
        text-align: center;
    }

    /* Hero buttons with spacing on mobile */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 3rem;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* Hero form - mobile priority */
    .quick-form {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        position: relative !important;
        z-index: 20 !important; /* Highest priority */
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 15px !important;
        padding: 2rem !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
    }

    /* Center CTA section */
    .contact-info-cta {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-item-cta {
        justify-content: center;
    }

    .contact-item-cta p a {
        color: var(--accent-color) !important;
        text-decoration: none;
    }

    .contact-item-cta p a:hover {
        color: white !important;
        text-decoration: underline;
    }

    /* Mobile header button spacing */
    .mobile-header-actions {
        gap: 1rem;
    }

    /* Contact form section mobile spacing */
    .section-padding.bg-dark {
        padding: 2rem 0 1rem 0;
        margin-bottom: 0;
    }

    /* Add spacing between form and contact info on mobile */
    .cta-form-container {
        margin-bottom: 3rem;
    }

    .contact-info-cta-mobile {
        margin-top: 3rem;
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
    }

    /* Ensure proper mobile column stacking */
    @media (max-width: 991px) {
        .section-padding.bg-dark .row {
            flex-direction: column;
        }

        .section-padding.bg-dark .col-lg-6:first-child {
            margin-bottom: 2rem;
            order: 1;
        }

        .section-padding.bg-dark .col-lg-6:last-child {
            order: 2;
        }
    }

    /* Remove bottom margin from body to eliminate white space */
    body {
        margin-bottom: 0;
    }

    /* Testimonials section mobile spacing - target by content */
    section.section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Specific testimonials section reduction */
    section.section-padding:not(.bg-light):not(.bg-dark) {
        padding-top: 1.5rem;
    }

    /* Footer logo larger on mobile */
    .footer-logo-img {
        max-height: 60px;
        height: 60px;
    }

    /* Reduce space above copyright divider */
    .footer-divider {
        margin: 20px 0 20px;
    }
}

/* Desktop footer legal links - keep on single line */
@media (min-width: 769px) {
    .footer-legal {
        display: flex;
        align-items: center;
        justify-content: end;
        flex-wrap: wrap;
        gap: 0;
    }

    .footer-legal .separator {
        display: inline;
        margin: 0 0.8rem;
    }
}

/* Performance & Accessibility Optimizations - August 2025 */

/* Fix deprecated h1 font-size API warning - More specific selectors */
.hero-section h1, 
section h1, 
article h1, 
aside h1, 
nav h1,
h1 {
    font-size: 2.5rem !important;
    font-display: swap;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-display: swap;
}

@media (max-width: 768px) {
    /* Mobile form - remove duplicate rules */
    /* Rules moved above */

    .hero-section h1,
    section h1,
    article h1,
    aside h1,
    nav h1,
    h1 {
        font-size: 2rem !important;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }
}

/* Modern Enhancements - August 2025 */

/* Staggered animation delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Modern button styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #fa961e, #e6850e) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(250, 150, 30, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 150, 30, 0.4);
    background: linear-gradient(45deg, #e6850e, #fa961e) !important;
}

/* Portfolio modern effects */
.portfolio-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(250, 150, 30, 0.1), rgba(44, 44, 44, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.08);
}

.portfolio-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern section titles - FORCE CENTER ALIGNMENT */
.section-title {
    position: relative;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Ensure all titles are centered */
.text-center .section-title,
.section-title {
    display: block !important;
    text-align: center !important;
}

/* Decorative line removed to prevent mobile overlap issues */

/* NEW CONTACT HERO SECTION - Complete rebuild from scratch */
.new-contact-hero-section {
    position: relative;
    background-image: url('../images/contact-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 100px;
}

.new-contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 44, 44, 0.7);
    z-index: 1;
}

.new-contact-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.new-contact-hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.new-contact-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: white;
}

.new-contact-hero-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.new-contact-hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.new-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.new-contact-btn-primary {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.new-contact-btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.new-contact-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.new-contact-btn-secondary:hover {
    background: white;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* MOBILE STYLES for Contact Hero */
@media (max-width: 768px) {
    .new-contact-hero-section {
        min-height: 60vh;
        padding-top: 100px;
        background-attachment: scroll;
    }

    .new-contact-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .new-contact-hero-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .new-contact-hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .new-contact-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Floating WhatsApp button animation */
.whatsapp-btn,
.whatsapp-btn-mobile {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn-mobile:hover {
    transform: scale(1.1) translateY(-2px);
    animation-play-state: paused;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Improved contrast ratios for accessibility */
.nav-link.active {
    font-weight: 600 !important;
    color: var(--accent-color) !important;
}

.testimonial-card-modern p {
    color: #2c2c2c !important;
    font-weight: 400;
}

.copyright-text {
    color: #cccccc !important;
    font-weight: 400;
}

/* Image performance optimizations */
img {
    image-rendering: optimizeQuality;
}

.portfolio-image {
    content-visibility: auto;
    contain-intrinsic-size: 400px 300px;
}

/* ===== NEW HERO SECTION - REBUILT FROM SCRATCH ===== */

/* Desktop Hero Section */
.new-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.new-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.new-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.new-hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.new-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.new-hero-text {
    background: rgba(44, 44, 44, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    color: white;
}

.new-hero-text h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.new-hero-text h2 {
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: white;
}

.new-hero-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    color: white;
}

.new-hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.new-hero-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 20;
}

.new-hero-form h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .new-hero-section {
        min-height: auto;
        padding: 100px 0 40px 0; /* Top space for fixed header */
    }

    .new-hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        padding: 2rem 0;
    }

    .new-hero-text {
        padding: 2rem;
        text-align: center;
        margin-bottom: 1rem;
        order: 1;
    }

    .new-hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .new-hero-text h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .new-hero-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .new-hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .new-hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .new-hero-form {
        padding: 2rem;
        margin-top: 1rem;
        order: 2;
        position: relative;
        z-index: 25; /* Highest z-index on mobile */
    }

    .new-hero-form h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .new-hero-section {
        padding: 90px 0 30px 0;
    }

    .new-hero-container {
        padding: 0 15px;
    }

    .new-hero-content {
        gap: 2rem;
    }

    .new-hero-text {
        padding: 1.5rem;
    }

    .new-hero-text h1 {
        font-size: 1.8rem;
    }

    .new-hero-form {
        padding: 1.5rem;
    }
}