/* ========================================
   MECHANICAL WORK SRL - Stylesheet
   ======================================== */

:root {
    --primary: #3a3a3a;
    --primary-dark: #1a1a1a;
    --primary-light: #555555;
    --secondary: #6b7280;
    --accent: #da332c;
    --accent-dark: #b82b25;
    --accent-light: #e35f59;
    --white: #ffffff;
    --light: #f5f5f5;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #cccccc;
    --gray-600: #555555;
    --gray-800: #2a2a2a;
    --dark: #1a1a1a;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FEATURES / CARDS
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--secondary);
    line-height: 1.7;
}

/* ========================================
   SERVICES
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image i {
    font-size: 4rem;
    color: var(--white);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-machines {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-top: 15px;
    margin-bottom: 0;
}

.service-machines i {
    color: var(--accent);
    margin-right: 5px;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--dark);
    padding: 20px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-item-content p,
.contact-item-content a {
    color: var(--secondary);
}

.contact-item-content a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-message {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-600);
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
    border-radius: 50%;
}

.footer-col p {
    line-height: 1.8;
}

.footer-since {
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list i {
    color: var(--accent);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ========================================
   MATERIALS LIST
   ======================================== */

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.material-tag {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-list li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========================================
   GALLERY & IMAGES
   ======================================== */

/* Hero con immagine di sfondo */
.hero-with-bg {
    position: relative;
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    z-index: 1;
}

.hero-with-bg .container {
    position: relative;
    z-index: 2;
}

/* Video Showcase */
.about-video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.showcase-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-caption i {
    color: var(--accent);
}

/* Image Grid per sezioni */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.image-grid-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}

.image-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-grid-item:hover img {
    transform: scale(1.1);
}

.image-grid-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.image-grid-item:hover .image-overlay {
    opacity: 1;
}

.image-grid-item .image-overlay h4 {
    font-size: 1rem;
    margin: 0;
}

/* Gallery Filter Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}

.gallery-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.gallery-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Gallery Lightbox */
.gallery-section {
    background: var(--gray-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item .gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--accent);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.9rem;
}

/* Service Image Card */
.service-card-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.service-card-with-image.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-card-with-image.reverse .service-card-image {
    order: 2;
}

.service-card-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Image Strip */
.contact-image-strip {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    overflow: hidden;
}

.contact-image-strip img {
    flex: 1;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-image-strip img:hover {
    transform: scale(1.05);
}

/* About Image Grid */
.about-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about-image-grid .main-image {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

.about-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card-with-image {
        grid-template-columns: 1fr;
    }
    
    .service-card-with-image.reverse .service-card-image {
        order: 0;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-image-strip {
        flex-wrap: wrap;
    }
    
    .contact-image-strip img {
        flex: 0 0 calc(50% - 7.5px);
    }
    
    .about-image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ========================================
   PLACEHOLDER STYLES
   ======================================== */

.placeholder-img {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--gray-300);
    font-size: 3rem;
}

.placeholder-box {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--gray-300);
    gap: 15px;
    box-shadow: var(--shadow);
}

.placeholder-box i {
    font-size: 4rem;
}

.placeholder-box span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary);
}

.gallery-item.placeholder-img {
    border-radius: var(--radius);
    aspect-ratio: 1;
}

/* Logo adjustments for SVG */
.logo img {
    border-radius: 50%;
    background: var(--primary-dark);
}

.footer-logo {
    background: var(--primary-dark);
    border-radius: 50%;
    padding: 5px;
}

/* ========================================
   VISUAL RESTYLE 2026 - INDUSTRIAL MIX
   ======================================== */

:root {
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 8px 24px rgba(12, 12, 12, 0.08);
    --shadow-lg: 0 16px 40px rgba(12, 12, 12, 0.14);
}

body {
    background: #f3f4f6;
    color: #1f2937;
}

.container {
    max-width: 1280px;
}

.header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: none;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}

.navbar {
    padding: 12px 0;
}

.logo {
    gap: 14px;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.logo img {
    height: 46px;
    border-radius: 6px;
    padding: 2px;
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.nav-menu {
    gap: 0;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.18);
}

.nav-menu li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu li:last-child {
    border-right: 0;
}

.nav-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 22px;
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: var(--accent);
}

.hero,
.page-header,
.cta-section {
    background: linear-gradient(135deg, #2b2f35 0%, #1a1a1a 70%);
}

.hero {
    padding: 170px 0 95px;
}

.hero::before {
    opacity: 0.2;
    background-size: 48px 48px;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    margin-bottom: 24px;
}

.hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.75;
}

.btn {
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-weight: 700;
    padding: 13px 22px;
}

.btn-primary {
    background: var(--accent);
    box-shadow: 0 8px 22px rgba(218, 51, 44, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(218, 51, 44, 0.3);
}

.btn-secondary {
    background: var(--primary-dark);
}

.btn-outline {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.section {
    padding: 84px 0;
}

.section-light {
    background: #e9ecef;
}

.section-title {
    margin-bottom: 42px;
}

.section-title h2,
.section-title h3 {
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-title h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 10px;
}

.section-title p {
    max-width: 720px;
    color: #4b5563;
}

.feature-card,
.service-card,
.stat-item,
.contact-form,
.right-item,
.info-box {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.feature-card,
.service-card,
.stat-item,
.contact-form,
.right-item {
    background: #ffffff;
}

.feature-card,
.service-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.service-card::before,
.contact-form::before,
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.feature-card {
    text-align: left;
    padding: 28px 24px;
}

.feature-card:hover,
.service-card:hover,
.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 0 18px;
    border-radius: 4px;
    background: #2f3640;
}

.feature-icon i {
    font-size: 1.3rem;
}

.feature-card h3,
.service-content h3,
.about-content h2,
.contact-info h3 {
    color: #111827;
}

.feature-card p,
.service-content p,
.about-content p,
.contact-info p,
.contact-item-content p,
.contact-item-content a,
.stat-label,
.footer-col p,
.footer-col ul a,
.legal-content p,
.legal-content ul,
.legal-content li {
    color: #4b5563;
}

.services-grid {
    gap: 24px;
}

.service-card {
    border-radius: 6px;
}

.service-image {
    background: linear-gradient(145deg, #2d333b 0%, #1f2329 100%);
    border-bottom: 1px solid #374151;
}

.service-image i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
}

.service-content {
    padding: 24px;
}

.service-content .btn {
    margin-top: 8px;
}

.about-section {
    gap: 42px;
    align-items: stretch;
}

.about-image,
.about-content {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 30px;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-badge {
    border-radius: 4px;
    right: 18px;
    bottom: 18px;
    font-size: 1.2rem;
    color: var(--white);
    background: var(--accent);
    padding: 12px 18px;
}

.placeholder-box,
.placeholder-img,
.gallery-item.placeholder-img {
    border-radius: 4px;
    background: linear-gradient(135deg, #dfe3e8 0%, #ccd2da 100%);
    color: #6b7280;
}

.stats-grid {
    gap: 22px;
}

.stat-item {
    position: relative;
    border-radius: 6px;
    padding: 24px 20px;
}

.stat-number {
    color: #111827;
}

.contact-grid {
    gap: 32px;
}

.contact-info {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 30px;
}

.contact-item i {
    border-radius: 4px;
    width: 44px;
    height: 44px;
    background: #2f3640;
}

.contact-form {
    position: relative;
    padding: 32px;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid #cfd4dc;
    border-radius: 4px;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #8b95a5;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.page-header {
    padding: 148px 0 56px;
    border-bottom: 4px solid var(--accent);
}

.page-header h1 {
    text-transform: uppercase;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    letter-spacing: 0.025em;
}

.breadcrumb {
    gap: 8px;
    margin-top: 18px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
}

.cta-section {
    border-top: 4px solid var(--accent);
    padding: 72px 0;
}

.cta-section h2 {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.materials-list {
    margin-top: 26px;
    gap: 8px;
}

.material-tag {
    border-radius: 4px;
    background: #2f3640;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.75rem;
    padding: 7px 11px;
}

.gallery-grid {
    gap: 12px;
}

.gallery-item {
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

.footer {
    background: #14171b;
    border-top: 4px solid var(--accent);
    color: #c9cfd8;
}

.footer-grid {
    border-bottom-color: #2e3440;
}

.footer-logo,
.logo img {
    border-radius: 6px;
}

.footer-col h4 {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.contact-list i,
.footer-since {
    color: #e0615c;
}

.social-links a {
    border-radius: 4px;
    background: #2f3640;
    border: 1px solid #3f4752;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 155px;
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header {
        border-bottom: 2px solid var(--accent);
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid #d1d5db;
        border-radius: 4px;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 1px;
    }

    .nav-menu {
        top: 74px;
        left: 10px;
        width: calc(100% - 20px);
        border-radius: 6px;
        border: 1px solid #343b45;
        overflow: hidden;
    }

    .nav-menu li {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: 0;
    }

    .nav-menu a {
        font-size: 0.86rem;
        padding: 14px 16px;
    }

    .hero {
        padding: 132px 0 76px;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn,
    .cta-section .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 64px 0;
    }

    .about-content,
    .about-image,
    .contact-info,
    .contact-form {
        padding: 22px;
    }

    .page-header {
        padding-top: 126px;
    }
}

/* ========================================
   MICRO-TUNING - HOME FOCUS
   ======================================== */

.hero-content p,
.section-title p,
.cta-section p {
    text-wrap: pretty;
}

.hero-buttons {
    margin-top: 4px;
}

.hero-buttons .btn {
    min-height: 46px;
}

.features-grid,
.services-grid {
    align-items: stretch;
}

.feature-card,
.service-card,
.stat-item {
    height: 100%;
}

.feature-card p,
.service-content p {
    line-height: 1.68;
}

.service-content {
    display: flex;
    flex-direction: column;
}

.service-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.about-content h2,
.section-title h2,
.cta-section h2 {
    line-height: 1.15;
}

.about-content p + p {
    margin-top: -4px;
}

.materials-list {
    padding-top: 2px;
}

.footer-bottom p {
    line-height: 1.7;
}

@media (min-width: 769px) {
    .section:first-of-type {
        padding-top: 92px;
    }

    .hero-content {
        padding-right: 18px;
    }

    .section .container > .about-section {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        margin-bottom: 34px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 128px 0 70px;
    }

    .hero p {
        line-height: 1.65;
        font-size: 0.98rem;
    }

    .hero-buttons {
        gap: 10px;
    }

    .section-title h2 {
        font-size: 1.65rem;
    }

    .section-title p {
        font-size: 0.98rem;
    }

    .feature-card,
    .service-content,
    .contact-form,
    .contact-info,
    .about-content,
    .about-image {
        padding: 20px;
    }

    .page-header {
        padding-bottom: 50px;
    }

    .page-header p {
        font-size: 1rem;
    }

    .cta-section {
        padding: 62px 0;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
}

/* ========================================
   VISUAL REFINEMENT - ROUND 2
   ======================================== */

:root {
    --tertiary: #3f4c66;
    --tertiary-dark: #303a4f;
    --tertiary-soft: #5a6884;
}

body.menu-open {
    overflow: hidden;
}

.logo img,
.footer-logo {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.logo img {
    height: 48px;
}

.hero,
.page-header,
.cta-section {
    background: linear-gradient(135deg, var(--tertiary) 0%, var(--tertiary-dark) 100%);
}

.nav-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    gap: 26px;
}

.nav-menu li {
    border: 0;
}

.nav-menu a {
    color: #374151;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #111827;
    background: transparent;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-mobile-brand,
.nav-mobile-meta {
    display: none;
}

.feature-card,
.service-card,
.stat-item,
.contact-form,
.right-item,
.info-box,
.about-content,
.about-image,
.contact-info,
.placeholder-box,
.gallery-item,
.service-image,
.btn,
.material-tag,
.social-links a,
.nav-toggle,
.nav-menu,
.form-group input,
.form-group textarea,
.form-group select {
    border-radius: 0;
}

.footer {
    background: #2a3346;
    border-top: 4px solid var(--accent);
    color: #d8deea;
}

.footer-col p,
.footer-col ul a,
.contact-list a,
.contact-list span,
.footer-bottom,
.footer-bottom a {
    color: #d8deea;
}

.footer-col ul a:hover,
.contact-list a:hover,
.footer-bottom a:hover {
    color: #ffffff;
}

.footer-col h4 {
    color: #ffffff;
}

.footer-grid {
    border-bottom-color: rgba(216, 222, 234, 0.22);
}

.contact-list i,
.footer-since {
    color: #e57f79;
}

@media (max-width: 768px) {
    .logo img {
        height: 44px;
    }

    .nav-toggle {
        position: relative;
        z-index: 2100;
        width: 46px;
        height: 46px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #d1d5db;
    }

    .nav-toggle span {
        width: 21px;
        height: 2px;
        background: #111827;
        transform-origin: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(160deg, #f7f8fa 0%, #edf1f6 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 28px 24px 34px;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
        z-index: 2000;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border: 0;
    }

    .nav-mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 30px;
    }

    .nav-mobile-brand img {
        width: 86px;
        height: auto;
        object-fit: contain;
    }

    .nav-mobile-brand span {
        font-family: 'Montserrat', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.85rem;
        color: #364152;
    }

    .nav-menu a {
        font-size: clamp(1.35rem, 5.6vw, 1.85rem);
        font-weight: 700;
        letter-spacing: 0.03em;
        padding: 12px 0;
        color: #1f2937;
    }

    .nav-menu a::after {
        left: 50%;
        bottom: 6px;
        width: 52px;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
    }

    .nav-menu a:hover::after,
    .nav-menu a.active::after {
        transform: translateX(-50%) scaleX(1);
    }

    .nav-mobile-meta {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 24px;
        padding: 0 24px;
    }

    .nav-mobile-meta p {
        margin: 0;
        text-align: center;
        color: #5b667a;
        font-size: 0.84rem;
        line-height: 1.55;
        letter-spacing: 0.02em;
    }

    .nav-mobile-meta .meta-company {
        color: #2f3a4e;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .nav-mobile-meta a {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: #3e4a61;
        padding: 0;
    }

    .nav-mobile-meta a::after {
        display: none;
    }
}

/* ========================================
   CTA + FOOTER UNIFIED BACKGROUND
   ======================================== */

.cta-section,
.footer {
    background: #2a3346;
}

.cta-section {
    border-top: 0;
    border-bottom: 0;
}

/* ========================================
   HERO VIDEO BACKGROUND
   ======================================== */

.hero-video {
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 51, 70, 0.75) 0%, rgba(26, 26, 26, 0.8) 100%);
    z-index: 1;
}

.hero-video .container {
    position: relative;
    z-index: 2;
}

.hero-video::before {
    display: none;
}

/* Page Header with Background Image */

.page-header-bg {
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 51, 70, 0.82) 0%, rgba(26, 26, 26, 0.88) 100%);
    z-index: 0;
}

.page-header-bg .container {
    position: relative;
    z-index: 1;
}

/* Service card images */

.service-image {
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
    pointer-events: none;
}

.service-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About section images */

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.footer {
    border-top: 0;
}

.cta-section p,
.cta-section h2 {
    color: #f4f7fb;
}

.header,
.header.scrolled {
    background: rgba(217, 234, 211, 1);
}

/* ========================================
   COLOR ALIGNMENT REQUESTED
   ======================================== */

.logo,
.nav-menu a,
.nav-menu a:hover,
.nav-menu a.active,
.nav-mobile-brand span,
.nav-mobile-meta .meta-company,
.nav-mobile-meta p,
.nav-mobile-meta a {
    color: rgba(68, 68, 68, 1);
}

.section-title h2,
.section-title h3,
.feature-card h3,
.service-content h3,
.about-content h2,
.contact-info h3,
.contact-item-content h4,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: rgba(68, 68, 68, 1);
}

.btn-secondary {
    background: rgb(57, 143, 102);
    color: var(--white);
}

.btn-secondary:hover {
    background: #2f7655;
}

/* ========================================
   SERVICE CARD TITLE OVERRIDE
   ======================================== */

.service-card .service-content h3 {
    background: var(--primary-dark);
    color: #ffffff;
    margin: 0 -24px 18px;
    padding: 14px 24px;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}
