/*
Theme Name: Emaurri
Theme URI: https://emaurri.qodeinteractive.com
Description: Architecture and Interior Design Theme
Author: Mikado Themes
Author URI: https://qodeinteractive.com
Text Domain: emaurri
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-menu, featured-images, flexible-header, post-formats, sticky-post, threaded-comments, translation-ready
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Global Responsive Fixes */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Fix Hero Slider Cut Off on Mobile */
@media screen and (max-width: 768px) {
    #rev_slider_8_1_wrapper,
    #rev_slider_8_1,
    rs-module-wrap,
    rs-module {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    #rev_slider_8_1 .tp-rs-img,
    rs-sbg-wrap,
    rs-sbg {
        height: 100vh !important;
        object-fit: cover !important;
    }
    
    /* Ensure content inside slider wrapper does not overflow */
    rs-loop-wrap, rs-mask-wrap {
        max-width: 100vw !important;
    }
}

/* Think Space Luxury Services Section */
.ts-services-section {
    padding: 100px 20px;
}

.ts-services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}

.ts-section-title {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #111;
    font-family: 'Questrial', sans-serif;
}

.ts-section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ts-services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
}

.ts-service-item {
    flex: 0 0 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .ts-service-item {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .ts-service-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ----------------------------------------- */
/* GLOBAL LUXURY DESIGN POLISH (THINK SPACE) */
/* ----------------------------------------- */

/* 1. Typography & Readability */
body, p, .qodef-m-text, .qodef-m-content p, p:not([class]) {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #4a4a4a !important; 
}

h1, h2, h3, h4, h5, h6, .qodef-m-title {
    letter-spacing: -0.02em !important;
}

/* 2. Button Micro-Interactions */
.qodef-button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.qodef-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* 3. Image Hover Zoom (Luxury Feel) */
.qodef-single-image, .qodef-image-wrapper {
    overflow: hidden;
}
.qodef-single-image img, .qodef-image-wrapper img, .attachment-full {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.qodef-single-image:hover img, .qodef-image-wrapper:hover img, .attachment-full:hover {
    transform: scale(1.03) !important;
}

/* 4. Soft Elementor Spacing Enhancements */
.elementor-section {
    position: relative;
}
.elementor-section:not(.ts-services-section):not(.elementor-section-height-full):not(:first-child) {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Mobile Spacing Safeguards */
@media screen and (max-width: 768px) {
    .elementor-section:not(.ts-services-section):not(.elementor-section-height-full):not(:first-child) {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* 5. Logo & Navbar Responsiveness Fix */
.qodef-header-logo-image {
    width: auto !important;
    max-width: 220px !important;
    height: auto !important;
}
@media (max-width: 768px) {
    .qodef-header-logo-image {
        max-width: 160px !important;
    }
}

/* 7. Featured Projects Polish */
.qodef-portfolio-list .qodef-e-inner {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.qodef-portfolio-list .qodef-e-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* ----------------------------------------- */

/* NEW HERO SECTION ARCHITECTURE */
.ts-custom-hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    background-color: transparent;
    overflow: hidden;
    margin-top: -100px; /* Offset for transparent header */
}

@media (max-width: 1024px) {
    .ts-custom-hero-slider {
        left: 50%;
        transform: translateX(-50%);
    }
}

.ts-hero-swiper {
    width: 100%;
    height: 100%;
}

.ts-hero-slide {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.ts-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.ts-hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0; /* No side margins / gap on left */
    display: flex;
    margin-top: 100px;
}

.ts-hero-glass-card {
    width: 35%; /* strictly 35% text, 65% image, zero overlap */
    padding: 60px 40px 60px 0; /* flush left */
}

/* Typography for Hero */
.ts-hero-tagline {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    color: #b0997e;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.ts-hero-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 400;
    color: #111;
    margin-bottom: 30px;
    font-family: 'Questrial', sans-serif;
}

.ts-hero-summary {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    max-width: 90%;
}

.ts-hero-pagination {
    bottom: 30px !important;
}
.ts-hero-pagination .swiper-pagination-bullet {
    background: #111;
    opacity: 0.5;
}
.ts-hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 1024px) {
    .ts-hero-bg {
        width: 100%;
    }
    
    .ts-hero-slide {
        align-items: center;
        padding-bottom: 0;
    }
    
    .ts-hero-content-wrapper {
        padding: 0;
        margin-top: 0;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
    }
    
    .ts-hero-glass-card {
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 100%);
        padding: 0 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 0;
        box-shadow: none;
    }
    
    .ts-hero-title {
        font-size: 42px;
        font-weight: 700 !important;
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0,0,0,.3);
        max-width: 600px;
        margin-bottom: 20px;
    }
    .ts-hero-summary {
        max-width: 480px;
        font-weight: 500 !important;
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0,0,0,.3);
        margin-bottom: 25px;
    }
    .ts-hero-tagline {
        font-weight: 600 !important;
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0,0,0,.3);
    }
    
    .ts-hero-glass-card a.qodef-button {
        border-color: #fff !important;
        align-self: flex-start;
    }
    .ts-hero-glass-card a.qodef-button span.qodef-m-text {
        color: #fff !important;
    }
}

@media (max-width: 768px) {
    .ts-hero-glass-card {
        background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
        padding: 0 20px;
    }
    
    .ts-hero-title {
        font-size: 34px;
        max-width: 100%;
    }
    
    .ts-hero-summary {
        font-size: 15px;
        max-width: 100%;
    }
}

/* Global Search Removal */
.qodef-search-opener, .widget_emaurri_core_search_opener { display: none !important; }
