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

/* Custom Design Enhancements for Mecing.com */

/* Global Transitions */
a,
button,
.elementor-button,
.jkit-button-wrapper {
    transition: all 0.3s ease-in-out !important;
}

/* --- About Us Page --- */

/* Mission & Vision Cards */
.mv-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.mv-card i {
    transition: transform 0.3s ease;
}

.mv-card:hover i {
    transform: scale(1.1);
    color: #c2322a;
    /* Branding Color */
}

/* Pillars Cards */
.pillar-card {
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.pillar-card .pillar-icon-box {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Note: You need to add 'pillar-icon-box' class to the oval/circle container in HTML or target specifically */
.pillar-card>div:first-child {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.pillar-card:hover>div:first-child {
    transform: rotateY(180deg);
    background-color: #c2322a !important;
    color: #fff !important;
}

/* --- Representaciones Page --- */

/* Brand Cards */
.brand-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: #c2322a !important;
}

.brand-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #c2322a;
    transition: width 0.3s ease;
}

.brand-card:hover::after {
    width: 100%;
}

.brand-card i {
    transition: color 0.3s ease;
}

.brand-card:hover i {
    color: #c2322a !important;
}

/* --- Service Detail Page --- */

/* Sidebar Links */
.service-sidebar ul li a {
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid transparent;
}

.service-sidebar ul li a:hover,
.service-sidebar ul li a.active-service {
    background-color: #fff;
    border-left-color: #c2322a;
    color: #c2322a !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding-left: 20px;
    /* Slight movement */
}

/* Features Grid (Existing Hover) */
.service-features-grid>div {
    padding: 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.service-features-grid>div:hover {
    background-color: #f9f9f9;
}

.service-features-grid>div i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-features-grid>div:hover i {
    transform: scale(1.2);
}

/* General Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Delay classes for staggered animation */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}


.delay-400 {
    animation-delay: 0.4s;
}

/* --- Responsive Utilities --- */

/* Hero Banner Responsiveness */
.hero-banner-section {
    position: relative;
    width: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    margin-bottom: 0;
    /* Remove margin to avoid "stuck on" look */
    /* Removed border-radius to prevent the "box" look */
    overflow: hidden;
}

.hero-banner-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered gradient: dark overlay + deep bottom fade into page background */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 70%, rgba(249, 249, 249, 1) 100%);
    z-index: 1;
}

/* Definitively kill any nested background images causing the "mounted" look */
.hero-banner-section * {
    background-image: none !important;
}

.hero-banner-section .elementor-heading-title {
    font-size: 52px !important;
    font-weight: 700 !important;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.hero-banner-section>* {
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .hero-banner-section {
        padding: 60px 0 !important;
    }

    .hero-banner-section h1 {
        font-size: 28px !important;
    }
}

/* --- Service Detail Page Redesign & Responsiveness --- */

.service-detail-container,
.e-con-inner.service-detail-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    flex-wrap: nowrap !important;
}

@media (max-width: 1024px) {

    .service-detail-container,
    .e-con-inner.service-detail-container {
        gap: 30px;
        padding: 60px 20px;
    }
}

@media (max-width: 900px) {

    .service-detail-container,
    .e-con-inner.service-detail-container {
        flex-direction: column !important;
        padding: 40px 20px;
        flex-wrap: wrap !important;
    }
}

/* Sidebar Styling */
.service-sidebar {
    flex: 1;
    max-width: 320px;
    min-width: 280px;
    width: 100%;
}

.service-sidebar-inner {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
}

@media (max-width: 900px) {
    .service-sidebar {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .service-sidebar-inner {
        position: static;
        padding: 20px;
    }
}

.service-sidebar h4 {
    margin-bottom: 25px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Archivo', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.service-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #c2322a;
    border-radius: 2px;
}

.service-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sidebar ul li {
    margin-bottom: 12px;
}

.service-sidebar ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.service-sidebar ul li a:hover,
.service-sidebar ul li a.active-service {
    background-color: #fff;
    color: #c2322a !important;
    border-left-color: #c2322a;
    box-shadow: 0 5px 15px rgba(194, 50, 42, 0.1);
    padding-left: 20px;
}

.service-sidebar ul li a i {
    font-size: 12px;
    color: #ccc;
    transition: all 0.3s ease;
}

.service-sidebar ul li a:hover i {
    color: #c2322a;
    transform: translateX(3px);
}

/* Sidebar Call to Action */
.sidebar-cta {
    margin-top: 40px;
    background: linear-gradient(135deg, #c2322a, #a01a13);
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 20px rgba(194, 50, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.sidebar-cta h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
}

.sidebar-cta p {
    font-size: 14px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.sidebar-cta .btn-cta {
    background: #fff;
    color: #c2322a;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Main Content Styling */
.service-content {
    flex: 3;
    width: 100%;
}

.service-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: "Archivo", Sans-serif !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.service-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
    font-family: "Archivo", Sans-serif !important;
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    display: block;
}

.service-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.service-features-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 25px;
}

@media (max-width: 767px) {
    .service-content h3#service-title {
        font-size: 30px !important;
    }

    .service-features-title {
        font-size: 22px;
        margin: 30px 0 15px;
    }
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #c2322a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-item i {
    color: #c2322a;
    font-size: 24px;
    margin-top: 2px;
}

.feature-item h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a1a1a;
    font-size: 18px;
}

.service-features-grid .feature-item p {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0 !important;
    line-height: 1.5;
    position: relative !important;
    padding-left: 20px !important;
    display: block;
    border-left: 2px solid transparent;
    /* Neutral debug */
}

.service-features-grid .feature-item p::before {
    content: "\f105" !important;
    /* fa-angle-right */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute;
    left: 0;
    top: 2px;
    color: #c2322a;
    font-size: 12px;
}

.feature-item p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .service-features-grid {
        grid-template-columns: 1fr;
    }
}

.service-benefit-box {
    background: linear-gradient(to right, #f9f9f9, #fff);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #c2322a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-benefit-box h4 {
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 20px;
}

.service-benefit-box p {
    margin: 0;
    color: #555;
    font-size: 16px;
}

/* --- Representaciones Page Responsiveness --- */

.representaciones-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.representaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 767px) {
    .representaciones-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .representaciones-header h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .representaciones-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Page --- */

.contact-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.map-container {
    width: 100%;
    height: 250px;
    border: none;
}

.contact-card-content {
    padding: 30px;
    flex-grow: 1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    color: #c2322a;
    font-size: 20px;
    margin-top: 4px;
}

.contact-info-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.contact-form-container {
    background: #111111 !important;
    padding: 50px;
    border-radius: 12px;
    color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.submit-btn {
    background: #c2322a;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #a12822;
}

/* Fix overlapping headings and invisible text */
.section-title h2 {
    letter-spacing: normal !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
/* Elegant Ampersand Style */
.elegant-ampersand {ir
    font-family: 'Times New Roman', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    padding: 0 2px;
}
