/* ============================================
   MODERN DESIGN OVERHAUL - Montajes El Khayati
   ============================================ */

/* Google Fonts loaded in _Layout.cshtml with preconnect for speed */

/* --- CSS Variables --- */
:root {
    --primary: #1a2332;
    --primary-light: #2a3a4f;
    --accent: #c8a45c;
    --accent-hover: #b8943c;
    --text-dark: #1a2332;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7f8fa;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #48bb78;
    --whatsapp: #25D366;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* --- Base Typography --- */
body {
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Merriweather', serif;
    font-weight: 600;
    color: var(--primary);
}

p {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.8;
}

a {
    color: var(--accent);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* --- Header Top Bar --- */
.header-top-area {
    background: var(--primary);
    padding: 4px 0;
    font-size: 12px;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--accent);
    line-height: 1.4;
}

.header-top-area .custom-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-top-area .contact {
    color: rgba(255,255,255,0.85);
    margin-right: 18px;
    font-size: 12px;
}

.header-top-area .contact a {
    color: rgba(255,255,255,0.85);
}

.header-top-area .contact a:hover {
    color: var(--accent);
}

.header-top-area .contact i {
    margin-right: 3px;
}

/* --- Language Dropdown --- */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 3px 12px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}

.lang-toggle i {
    margin: 0 2px;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0;
    min-width: 140px;
    z-index: 9999;
}

.lang-menu.open {
    display: block;
}

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.lang-menu li a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.lang-menu li a img {
    width: 16px;
    height: 12px;
}

/* --- Main Header / Navbar --- */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* ===== BULLETPROOF HEADER ALIGNMENT ===== */
.header > .container > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 15px 0 !important;
}
.header > .container > .row > [class*="col-"] {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    min-height: 0 !important;
}
.header .col-md-8 { justify-content: flex-end !important; }

.header .navbar-header,
.header .navbar-brand,
.header .logo {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    line-height: 1 !important;
}
.header .logo { gap: 10px; }
.header .logo img {
    display: block !important;
    max-height: 42px !important;
    width: auto !important;
    margin: 0 !important;
    vertical-align: middle !important;
}
.header .logo span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.header .navbar {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
    background: transparent !important;
    width: 100%;
    justify-content: flex-end;
}
.header .navbar-collapse {
    padding: 0 !important;
    box-shadow: none !important;
    flex: 0 0 auto;
}
.header .navbar-collapse ul.nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.header .navbar-collapse ul.nav > li { float: none !important; }
.header .navbar-collapse ul.nav > li > a {
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* ===== COMPACT PAGE HEADER ===== */
.page-head.pdd-100 {
    padding: 50px 0 45px !important;
    position: relative;
    overflow: hidden;
}
.page-head.parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15,28,46,0.88) 0%,
        rgba(15,28,46,0.72) 50%,
        rgba(15,28,46,0.85) 100%);
    z-index: 1;
}
.page-head .container {
    position: relative;
    z-index: 2;
}
.page-head h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding-bottom: 12px !important;
    position: relative;
    display: inline-block;
    letter-spacing: 0.3px;
}
.page-head h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #c8a45c 0%, #f0d98a 100%);
    border-radius: 2px;
}
@media (max-width: 767px) {
    .page-head.pdd-100 { padding: 35px 0 30px !important; }
    .page-head h2 { font-size: 24px !important; }
}

/* ===== MODERN GALLERY GRID ===== */
.portfolio-area {
    background: #f6f7f9 !important;
    padding: 50px 0 60px !important;
}
.portfolio-area .section-title { text-align: center; margin-bottom: 10px; }
.portfolio-area .section-title h3 {
    color: #0f1c2e !important;
    font-family: 'Playfair Display', serif;
    font-size: 28px !important;
    position: relative;
    padding-bottom: 14px;
    display: inline-block;
    margin-bottom: 14px;
}
.portfolio-area .section-title h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #c8a45c 0%, #f0d98a 100%);
    border-radius: 2px;
}
.portfolio-area .section-title p {
    color: #5a6372;
    font-size: 14px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter pills — redesigned */
.portfolio-nav {
    margin: 20px 0 30px !important;
}
.portfolio-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.portfolio-nav li {
    background: #fff !important;
    border: 1px solid #e4e6ea !important;
    border-radius: 30px !important;
    color: #55606e !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 8px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.28s ease;
    margin: 0 !important;
}
.portfolio-nav li:hover {
    border-color: #c8a45c !important;
    color: #c8a45c !important;
    transform: translateY(-1px);
}
.portfolio-nav li.active,
.portfolio-nav li.focus {
    background: linear-gradient(135deg, #c8a45c 0%, #d4b370 100%) !important;
    border-color: #c8a45c !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(200,164,92,0.25);
}

/* Gallery grid */
.no-container {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 20px !important;
}
.portfolio {
    margin: 0 -8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    position: static !important;
    height: auto !important;
}

.portfolio-element {
    float: none !important;
    width: 25% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    overflow: visible !important;
}
.portfolio-element.pf-hide { display: none !important; }

/* ===== CONTACT PAGE — Request a Quote ===== */
.contact-page {
    background: #f6f7f9 !important;
    padding: 55px 0 70px !important;
}
.contact-page .section-title { margin-bottom: 20px; }
.contact-page .section-title h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 26px !important;
    color: #0f1c2e !important;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 14px !important;
    display: inline-block;
}
.contact-page .section-title h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, #c8a45c 0%, #f0d98a 100%);
    border-radius: 2px;
}
.contact-page .section-title p {
    color: #5a6372;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* The form card */
.contact-form-area {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 24px rgba(15,28,46,0.06);
    border: 1px solid #eef0f3;
}
.contact-form-area .form-group { margin-bottom: 16px; }
.contact-form-area label {
    display: block;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0f1c2e !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px !important;
}
.contact-form-area .form-control {
    width: 100% !important;
    border: 1px solid #e1e4e9 !important;
    border-radius: 8px !important;
    background: #fafbfc !important;
    padding: 11px 14px !important;
    height: auto !important;
    font-size: 14px !important;
    color: #0f1c2e !important;
    box-shadow: none !important;
    transition: all 0.22s ease !important;
}
.contact-form-area .form-control:focus {
    border-color: #c8a45c !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(200,164,92,0.12) !important;
}
.contact-form-area textarea.form-control { resize: vertical; min-height: 120px; }
.contact-form-area select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8a45c' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

/* Submit button */
.contact-form-area .bttn {
    background: linear-gradient(135deg, #c8a45c 0%, #d4b370 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 40px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(200,164,92,0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease !important;
    margin-top: 6px;
}
.contact-form-area .bttn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(200,164,92,0.38);
    filter: brightness(1.03);
    color: #fff !important;
}

/* Right column — contact info card */
.contact-info-box {
    background: #0f1c2e;
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15,28,46,0.14);
}
.contact-info-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #c8a45c 0%, #f0d98a 50%, #c8a45c 100%);
}
.contact-info-box .section-title h3 {
    color: #fff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 22px !important;
    padding-bottom: 12px;
    margin-bottom: 22px !important;
    display: inline-block;
    position: relative;
}
.contact-info-box .section-title h3::after {
    background: #c8a45c;
    width: 40px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .contact-icon {
    width: 40px; height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: rgba(200,164,92,0.12);
    border: 1px solid rgba(200,164,92,0.25);
    display: flex; align-items: center; justify-content: center;
    color: #c8a45c;
    font-size: 16px;
    transition: all 0.25s;
}
.contact-info-item:hover .contact-icon {
    background: #c8a45c;
    border-color: #c8a45c;
    color: #fff;
}
.contact-info-item .contact-text h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 0 0 4px;
}
.contact-info-item .contact-text p {
    color: rgba(255,255,255,0.65);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}
.contact-info-item .contact-text p a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}
.contact-info-item .contact-text p a:hover { color: #c8a45c; text-decoration: none; }
.contact-info-item .contact-text small { color: rgba(255,255,255,0.45); font-size: 11.5px; }

/* Success / error message */
#form-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}
#form-message.success {
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.3);
    color: #1a8a46;
}

@media (max-width: 767px) {
    .contact-form-area, .contact-info-box { padding: 22px; }
    .contact-info-box { margin-top: 25px; }
}

/* =====================================================
   MOBILE OVERHAUL (<=767px)
   ===================================================== */
@media (max-width: 767px) {

    /* Top bar — hide desktop contact info, center lang selector */
    .header-top-area { padding: 6px 0 !important; }
    .header-top-area .custom-right,
    .header-top-area .lang-dropdown { float: none !important; text-align: center; }
    .header-top-area .lang-dropdown { display: inline-block !important; }

    /* Show a simplified mobile header with logo */
    .mobile-menu-area {
        display: block !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(15,28,46,0.08);
        padding: 10px 0 !important;
        position: relative;
        z-index: 99;
    }
    .mobile-menu-area::before {
        content: '';
        display: block;
        background-image: url('../images/logo/logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left center;
        width: 140px;
        height: 40px;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    /* MeanMenu hamburger — style the bars button */
    .mean-container .mean-bar {
        background: transparent !important;
        padding: 0 !important;
        min-height: 52px !important;
        position: relative;
    }
    .mean-container a.meanmenu-reveal {
        color: #0f1c2e !important;
        padding: 16px 14px !important;
        top: 0 !important;
        right: 8px !important;
    }
    .mean-container a.meanmenu-reveal span {
        background: #0f1c2e !important;
        height: 2px !important;
        margin-top: 4px !important;
        border-radius: 2px;
    }

    /* MeanMenu dropdown list */
    .mean-container .mean-nav {
        background: #0f1c2e !important;
        margin-top: 52px !important;
        border-top: 3px solid #c8a45c;
    }
    .mean-container .mean-nav ul { padding: 0 !important; margin: 0 !important; }
    .mean-container .mean-nav ul li {
        border-top: 1px solid rgba(255,255,255,0.06) !important;
        width: 100% !important;
        float: none !important;
    }
    .mean-container .mean-nav ul li:first-child { border-top: none !important; }
    .mean-container .mean-nav ul li a {
        color: rgba(255,255,255,0.85) !important;
        background: transparent !important;
        padding: 14px 22px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        border: none !important;
        width: 100% !important;
        display: block !important;
        transition: all 0.22s ease !important;
    }
    .mean-container .mean-nav ul li a:hover,
    .mean-container .mean-nav ul li a:active {
        background: rgba(200,164,92,0.1) !important;
        color: #c8a45c !important;
        padding-left: 28px !important;
    }

    /* Page head banner — compact */
    .page-head.pdd-100 {
        padding: 32px 0 28px !important;
        min-height: auto !important;
    }
    .page-head h2 {
        font-size: 22px !important;
        text-align: left;
        padding-left: 0;
    }

    /* Section titles smaller */
    .section-title h3,
    .portfolio-area .section-title h3,
    .contact-page .section-title h3 {
        font-size: 22px !important;
    }
    .section-title p {
        font-size: 13px;
        padding: 0 10px;
    }

    /* Projects grid — single col stacks nicely */
    .project-card { margin-bottom: 18px; }

    /* Gallery filter pills wrap nicely */
    .portfolio-nav ul {
        gap: 6px !important;
        padding: 0 10px !important;
    }
    .portfolio-nav li {
        font-size: 11px !important;
        padding: 7px 14px !important;
    }

    /* Footer tightening on mobile */
    .footer-main { padding: 22px 0 8px !important; }
    .footer-col { margin-bottom: 18px !important; }
    .footer-bottom { text-align: center; }
    .footer-bottom .copyright { font-size: 11.5px; }

    /* WhatsApp floating button — keep comfortable bottom offset */
    .whatsapp-float { bottom: 18px !important; left: 18px !important; }
}

/* Tiny phones */
@media (max-width: 400px) {
    .page-head h2 { font-size: 19px !important; }
    .portfolio-nav li { font-size: 10.5px !important; padding: 6px 11px !important; }
}
.portfolio-element .thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #0f1c2e;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0 4px 14px rgba(15,28,46,0.08);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    cursor: pointer;
}
.portfolio-element .thumbnail::after {
    content: '\f002'; /* fa-search */
    font-family: 'FontAwesome';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(15,28,46,0.7), rgba(200,164,92,0.45));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}
.portfolio-element .thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.portfolio-element:hover .thumbnail {
    box-shadow: 0 14px 30px rgba(15,28,46,0.25);
    transform: translateY(-4px);
}
.portfolio-element:hover .thumbnail::after { opacity: 1; }
.portfolio-element:hover .thumbnail img { transform: scale(1.08); }
.portfolio-element::before { display: none !important; }

/* Responsive breakpoints */
@media (max-width: 1199px) { .portfolio-element { width: 33.333%; } }
@media (max-width: 767px)  { .portfolio-element { width: 50%; }
                             .portfolio-element .thumbnail img { height: 200px; } }
@media (max-width: 479px)  { .portfolio-element { width: 100%; } }

.header.navbar-fixed-top {
    box-shadow: var(--shadow-md);
}

.logo span.logoNavy {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 22px;
}

.logo span.logoBlue {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--accent);
    font-size: 22px;
}

.navbar-collapse ul.nav li a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 10px;
    transition: var(--transition);
    position: relative;
}

.navbar-collapse ul.nav {
    float: right;
}

.navbar-brand {
    padding: 12px 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    max-height: 35px;
    vertical-align: middle;
}

.navbar-collapse ul.nav li a:hover,
.navbar-collapse ul.nav li a:focus {
    color: var(--accent);
    background: transparent;
}

.navbar-collapse ul.nav li a,
.navbar-collapse ul.nav li a:hover,
.navbar-collapse ul.nav li a:focus,
.navbar-collapse ul.nav li a:active {
    text-decoration: none !important;
}

.navbar-collapse ul.nav li a::after,
.navbar-collapse ul.nav li a::before {
    display: none !important;
    content: none !important;
}

/* --- Section Titles --- */
.section-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.section-title h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-medium);
    font-size: 15px;
    max-width: 700px;
    margin: 10px auto 0;
}

/* --- Buttons --- */
.bttn,
a.bttn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 35px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    transition: var(--transition);
    display: inline-block;
}

.bttn:hover,
a.bttn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 164, 92, 0.4);
}

button.bttn {
    cursor: pointer;
    border: 2px solid var(--accent);
}

/* --- Feature Boxes (Services) --- */
.feature-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 45px;
    color: var(--accent);
    transition: var(--transition);
}

.feature-box:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--primary);
}

.feature-media h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-media h3 a {
    color: var(--primary);
}

.feature-media h3 a:hover {
    color: var(--accent);
}

/* --- Services Page (Special Works) --- */
.special-work {
    background: var(--bg-light);
}

.customservice {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.customservice:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.customservice img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.customservice:hover img {
    transform: scale(1.03);
}

.customservice h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--primary);
    padding: 20px 20px 10px;
}

.customservice p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-medium);
}

/* --- Action Call / Features2 (Sistemas Constructivos) --- */
#features2,
.features2 {
    position: relative;
}

.features2 .section-title h3 {
    color: #fff;
}

.features2 .section-title h3::after {
    background: var(--accent);
}

.features2-content {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.features2-media h3 {
    font-size: 17px;
}

.features2-media h3 a {
    color: #fff;
    transition: var(--transition);
}

.features2-media h3 a:hover {
    color: var(--accent);
}

.features2-media p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.features2-content .feature-icon i {
    color: var(--accent);
}

/* --- Recent Work --- */
.recent-work {
    background: var(--bg-light);
}

.working-wrap {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.working-wrap:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.work-img {
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.working-wrap:hover .work-img img {
    transform: scale(1.08);
}

.work-content {
    padding: 20px;
}

.work-content h4 a {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--primary);
    transition: var(--transition);
}

.work-content h4 a:hover {
    color: var(--accent);
}

.wrk-client {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.wrk-client span {
    font-weight: 600;
    color: var(--accent);
}

.work-text {
    font-size: 13px;
    margin-top: 10px;
    color: var(--text-medium);
}

/* --- Page Header / Page Title --- */
.page-head {
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.6) 100%);
}

.page-head .container {
    position: relative;
    z-index: 1;
}

.page-head h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    text-shadow: none;
}

/* --- Quote / Contact Form Section --- */
.quote {
    background: var(--bg-light);
}

.appointment-form .form-control {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 12px 15px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-white);
}

.appointment-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,164,92,0.15);
}

/* --- Contact Page --- */
.contact-page {
    background: var(--bg-light);
}

.contact-form-area {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.contact-form-area label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-area .form-control {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 12px 15px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-white);
}

.contact-form-area .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,164,92,0.15);
}

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

.contact-info-box {
    background: var(--primary);
    padding: 35px;
    border-radius: var(--radius-lg);
    color: #fff;
}

.contact-info-box .section-title h3 {
    color: #fff;
    font-size: 24px;
}

.contact-info-box .section-title h3::after {
    margin: 15px 0 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200,164,92,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 16px;
    color: var(--accent);
}

.contact-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 3px;
}

.contact-text p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.contact-text a {
    color: rgba(255,255,255,0.9);
}

.contact-text a:hover {
    color: var(--accent);
}

/* --- Projects Page --- */
.projects-page {
    background: var(--bg-light);
}

.project-year-group {
    margin-bottom: 50px;
}

.year-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--primary);
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-img img {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,35,50,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-overlay i {
    font-size: 40px;
    color: var(--accent);
}

.project-card-body {
    padding: 20px;
}

.project-card-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--primary);
    margin: 0 0 5px;
}

.project-card-body .project-client {
    font-size: 13px;
    color: var(--text-light);
}

.project-card-body .project-client span {
    color: var(--accent);
    font-weight: 600;
}

.project-card-body p {
    font-size: 13px;
    margin-top: 8px;
    color: var(--text-medium);
}

/* Project detail / gallery modal */
.project-gallery-section {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Year filter buttons */
.year-filter {
    text-align: center;
    margin-bottom: 40px;
}

.year-filter-btn {
    display: inline-block;
    padding: 8px 25px;
    margin: 5px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.year-filter-btn:hover,
.year-filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Footer --- */
footer .f-title {
    font-family: 'Playfair Display', serif;
}

footer .custom p {
    font-size: 14px;
}

footer .quick-links ul li a {
    font-size: 14px;
    padding: 5px 0;
    display: block;
    transition: var(--transition);
}

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

/* --- Slider enhancements --- */
.slideshow {
    position: relative;
}

.tp-caption.slide-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.tp-caption.layer-no2.imperial-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

.tp-caption.slider-content h4 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
}

/* --- Padding Utilities --- */
.pdd-60 { padding: 60px 0; }
.pdd-80 { padding: 80px 0; }
.pdd-90 { padding: 90px 0; }
.pdd-100 { padding: 100px 0; }

/* --- Preloader modernized --- */
#preloader {
    background: var(--bg-white);
}

/* --- Scroll Up modernized --- */
#scrollUp {
    background: var(--accent);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    line-height: 42px;
    box-shadow: var(--shadow-md);
}

#scrollUp:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* --- WhatsApp floating button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    color: #fff;
    font-size: 30px;
}

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

/* --- Portfolio / Gallery modern --- */
.portfolio-nav li {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    padding: 8px 20px;
    transition: var(--transition);
}

.portfolio-nav li:hover,
.portfolio-nav li.active {
    background: var(--accent);
    color: #fff;
}

/* --- Alert styling --- */
.alert-success {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: var(--radius);
    padding: 15px 20px;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN - All Screen Sizes
   ============================================ */

/* --- Tablet landscape (992px - 1199px) --- */
@media (max-width: 1199px) {
    .navbar-nav > li > a {
        padding: 15px 8px;
        font-size: 13px;
    }
}

/* --- Tablet portrait (768px - 991px) --- */
@media (max-width: 991px) {
    .header-top-area .custom-left {
        text-align: center;
    }

    .header-top-area .contact {
        font-size: 11px;
        margin-right: 10px;
    }

    .lang-dropdown {
        text-align: center;
        float: none !important;
    }

    .lang-toggle {
        padding: 2px 10px;
        font-size: 12px;
    }

    .contact-info-box {
        margin-top: 30px;
    }

    .features2 {
        background-attachment: scroll;
        background-position: center center;
    }

    .section-title h3 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 14px;
    }

    footer .f-title {
        font-size: 18px;
    }

    footer .c-menu p,
    footer .custom p,
    footer .quick-links ul li a {
        font-size: 13px;
    }

    /* Project cards */
    .project-card {
        margin-bottom: 20px;
    }

    /* Contact page */
    .contact-page .col-md-7,
    .contact-page .col-md-5 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* --- Mobile landscape + small tablet (480px - 767px) --- */
@media (max-width: 767px) {
    /* Header top bar */
    .header-top-area {
        padding: 6px 0;
    }

    .header-top-area .custom-left {
        display: none;
    }

    .header-top-area .custom-right {
        text-align: center;
    }

    .lang-dropdown {
        float: none !important;
        display: inline-block;
    }

    /* Typography */
    .section-title h3 {
        font-size: 22px;
    }

    .section-title p {
        font-size: 13px;
        padding: 0 10px;
    }

    .page-head h2 {
        font-size: 22px;
    }

    .page-head,
    .page-head.pdd-100 {
        padding: 32px 0 28px !important;
        min-height: auto !important;
    }

    /* Slider */
    .tp-caption.layer-no2.imperial-title {
        font-size: 28px !important;
    }

    .tp-caption.slide-title {
        font-size: 36px !important;
    }

    .tp-caption.slider-content h4 {
        font-size: 14px !important;
    }

    /* Features / Services */
    .feature-box {
        margin-bottom: 30px;
    }

    /* Features2 / Sistemas Constructivos */
    .features2 {
        background: var(--primary) !important;
        background-image: none !important;
        padding-bottom: 45px;
    }

    .left-bdr .section-title h3 {
        text-align: center;
        width: 100%;
    }

    .left-bdr .section-title h3::after {
        margin: 20px auto;
    }

    /* Special Works */
    .customservice {
        margin-bottom: 30px;
    }

    .customservice p {
        font-size: 13px;
    }

    /* Recent Work */
    .working-wrap {
        margin-bottom: 25px;
    }

    /* Contact form */
    .contact-form-area {
        padding: 15px;
    }

    .contact-info-box {
        padding: 20px;
        margin-top: 30px;
    }

    .contact-info-item {
        margin-bottom: 15px;
    }

    /* Projects page */
    .year-filter {
        text-align: center;
    }

    .year-filter-btn {
        margin: 3px;
        padding: 6px 15px;
        font-size: 13px;
    }

    .project-card {
        margin-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    footer .f-title {
        font-size: 18px;
        margin-top: 25px;
    }

    footer .col-md-4:first-child .f-title {
        margin-top: 0;
    }

    footer .c-menu {
        margin-bottom: 8px;
        padding: 5px 0;
    }

    footer .c-menu p {
        font-size: 13px;
    }

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

    .t3-copyright ul {
        text-align: center;
        padding: 10px 0 0 0;
    }

    .t3-copyright ul li {
        display: inline-block;
        padding: 0 8px;
    }

    /* WhatsApp button */
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }
}

/* --- Mobile portrait (max-width: 479px) --- */
@media (max-width: 479px) {
    .section-title h3 {
        font-size: 20px;
    }

    .section-title p {
        font-size: 12px;
    }

    .tp-caption.layer-no2.imperial-title {
        font-size: 20px !important;
    }

    .tp-caption.slide-title {
        font-size: 28px !important;
    }

    .tp-caption.slider-content h4 {
        font-size: 12px !important;
    }

    .feature-box {
        padding: 20px 15px;
    }

    .features2-media h3 {
        font-size: 15px;
    }

    .features2-media p {
        font-size: 12px;
    }

    footer .f-title {
        font-size: 16px;
    }

    .contact-form-area .form-control {
        font-size: 14px;
    }

    .bttn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .whatsapp-float {
        bottom: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
    }

    .whatsapp-float i {
        font-size: 22px;
    }
}

/* =====================================================
   MOBILE FINAL PATCH — loaded last to win specificity
   ===================================================== */
@media (max-width: 767px) {
    /* Body scroll lock fix when menu opens */
    body { overflow-x: hidden !important; }

    /* Make sure top-bar is compact and lang selector centered */
    .header-top-area { padding: 5px 0 !important; min-height: 32px; }
    .header-top-area .container > .row { display: block !important; }
    .header-top-area .custom-right { text-align: center !important; padding: 0 !important; }
    .header-top-area .lang-toggle {
        background: transparent !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
        color: #fff !important;
        padding: 4px 10px !important;
        font-size: 12px !important;
        border-radius: 4px;
    }

    /* Mobile header area — layout logo + hamburger on same row */
    .mobile-menu-area {
        display: block !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(15,28,46,0.08);
        padding: 0 !important;
        position: relative;
        z-index: 99;
        min-height: 58px;
    }
    .mobile-menu-area .container,
    .mobile-menu-area .row,
    .mobile-menu-area .col-md-12,
    .mobile-menu-area .col-xs-12,
    .mobile-menu-area .mobile-menu {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 58px;
    }
    .mobile-menu-area::before {
        content: '';
        display: block;
        background-image: url('../images/logo/logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left center;
        width: 130px;
        height: 42px;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        pointer-events: none;
    }

    /* MeanMenu bar: room for logo on left, button on right */
    .mean-container .mean-bar {
        background: transparent !important;
        padding: 0 !important;
        min-height: 58px !important;
        position: relative;
        float: none !important;
        width: 100% !important;
    }
    .mean-container a.meanmenu-reveal {
        color: #0f1c2e !important;
        padding: 18px 14px !important;
        top: 0 !important;
        right: 10px !important;
        width: 28px !important;
        height: 22px !important;
        text-indent: -9999em !important;
        box-sizing: content-box !important;
    }
    .mean-container a.meanmenu-reveal span {
        background: #0f1c2e !important;
        height: 2px !important;
        margin-top: 4px !important;
        border-radius: 2px;
        display: block !important;
    }

    /* MeanMenu dropdown below header */
    .mean-container .mean-nav {
        background: #0f1c2e !important;
        margin-top: 58px !important;
        border-top: 3px solid #c8a45c;
        float: none !important;
        width: 100% !important;
    }
    .mean-container .mean-nav ul { padding: 0 !important; margin: 0 !important; list-style: none !important; }
    .mean-container .mean-nav ul li {
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        width: 100% !important;
        float: none !important;
    }
    .mean-container .mean-nav ul li:first-child { border-top: none !important; }
    .mean-container .mean-nav ul li a {
        color: rgba(255,255,255,0.9) !important;
        background: transparent !important;
        padding: 14px 22px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        border: none !important;
        width: 100% !important;
        display: block !important;
        text-align: left !important;
    }
    .mean-container .mean-nav ul li a:hover,
    .mean-container .mean-nav ul li a:active {
        background: rgba(200,164,92,0.12) !important;
        color: #c8a45c !important;
    }

    /* Hide the raw mobile-menu UL before/if MeanMenu fails */
    .mobile-menu > nav > ul { display: none !important; }
    .mean-container .mobile-menu > nav > ul { display: none !important; }

    /* Page head banner — definitively compact */
    .page-head,
    .page-head.pdd-100,
    .page-head.parallax {
        padding: 34px 0 28px !important;
        min-height: auto !important;
    }
    .page-head h2,
    .page-head.pdd-100 h2 {
        font-size: 22px !important;
        margin: 0 !important;
        line-height: 1.25 !important;
    }
    .page-head h2::after {
        margin-top: 10px !important;
    }

    /* Section padding reduce */
    .ptb-100 { padding: 45px 0 !important; }
    .ptb-80  { padding: 40px 0 !important; }
    .pdd-100 { padding-top: 34px !important; padding-bottom: 34px !important; }

    /* Gallery — 2 columns on mobile */
    .portfolio-element { width: 50% !important; padding: 5px !important; }
    .portfolio-element .thumbnail img { height: 160px !important; }

    /* Portfolio filter bar — wrap and center */
    .portfolio-nav { text-align: center !important; }
    .portfolio-nav ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 10px !important;
        margin: 0 0 20px 0 !important;
    }
    .portfolio-nav li {
        font-size: 11px !important;
        padding: 7px 12px !important;
        margin: 0 !important;
    }

    /* Footer */
    .footer-main { padding: 22px 0 8px !important; }
    .footer-col { margin-bottom: 18px !important; text-align: center; }
    .footer-col h4 { text-align: center; }
    .footer-col h4::after { margin-left: auto !important; margin-right: auto !important; }
    .fc-icon { margin: 0 auto 8px !important; }
    .footer-contact li { justify-content: center; }
    .footer-bottom { text-align: center; }
    .footer-bottom .copyright { font-size: 11.5px; padding: 10px 15px !important; }

    /* Contact form card on mobile */
    .contact-form-area { padding: 20px 15px !important; }

    /* WhatsApp float */
    .whatsapp-float { bottom: 16px !important; left: 16px !important; width: 48px !important; height: 48px !important; }
    .whatsapp-float i { font-size: 24px !important; line-height: 48px !important; }
}

@media (max-width: 400px) {
    .mobile-menu-area::before { width: 110px; height: 36px; left: 12px; }
    .page-head h2, .page-head.pdd-100 h2 { font-size: 19px !important; }
    .portfolio-element .thumbnail img { height: 130px !important; }
    .portfolio-nav li { font-size: 10.5px !important; padding: 6px 10px !important; }
    .section-title h3 { font-size: 20px !important; }
}
