/*
 Theme Name:   Dermis Child
 Theme URI:    https://dermis.wpengine.com/
 Description:  Dermis Child Theme
 Author:       the WeDesignTech team
 Author URI:   https://wedesignthemes.com/
 Template:     dermis
 Version:      1.0.0
 Text Domain:  dermis-child
 Tested up to: 6.7
 Requires PHP: 7.4
 Tags: Blog,Portfolio
 License: GNU General Public License v2 or later License URI: https: //www.gnu.org/licenses/gpl-2.0.html
 Copyright (C) 2024 venusweb. All rights reserved.
*/

/* Custom Styles */

/* Import Google Fonts alternatives until custom fonts are available */
/* Using Inter as a similar free alternative until Neurial Grotesk is available */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* Using Playfair Display as a similar free alternative until Scotch Text Condensed is available */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap');

/* Neurial Grotesk Font - Uncomment and add font files when available */
/*
@font-face {
    font-family: 'Neurial Grotesk';
    src: url('fonts/NeurialGrotesk-Regular.woff2') format('woff2'),
         url('fonts/NeurialGrotesk-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neurial Grotesk';
    src: url('fonts/NeurialGrotesk-Bold.woff2') format('woff2'),
         url('fonts/NeurialGrotesk-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
*/

/* Apply Neurial Grotesk font to specific text element */
/* Using Inter as fallback - replace with 'Neurial Grotesk' when font files are added */
.wdt-text-tile.elementor-repeater-item-86db83a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    color: #FFF !important;
}

/* Scotch Text Condensed Font - Uncomment and add font files when available */
/*
@font-face {
    font-family: 'Scotch Text Condensed';
    src: url('fonts/ScotchTextCondensed-Regular.woff2') format('woff2'),
         url('fonts/ScotchTextCondensed-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Scotch Text Condensed';
    src: url('fonts/ScotchTextCondensed-Medium.woff2') format('woff2'),
         url('fonts/ScotchTextCondensed-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Scotch Text Condensed';
    src: url('fonts/ScotchTextCondensed-MediumItalic.woff2') format('woff2'),
         url('fonts/ScotchTextCondensed-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Scotch Text Condensed';
    src: url('fonts/ScotchTextCondensed-Bold.woff2') format('woff2'),
         url('fonts/ScotchTextCondensed-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
*/

/* Apply Scotch Text Condensed font to specific text element */
/* Using Playfair Display as fallback - replace with 'Scotch Text Condensed' when font files are added */
.wdt-text-tile.elementor-repeater-item-170a151 {
    font-family: 'Playfair Display', 'Times New Roman', Times, serif !important;
    font-weight: 500 !important;
    font-style: italic !important;
    letter-spacing: 0.05em !important;
    text-transform: capitalize !important;
    color: #E8EFD3 !important;
}

/* Header Menu Background Color Override */
.wdt-header-menu .wdt-primary-nav > li > a:before,
.wdt-header-menu .wdt-primary-nav > li > a:after {
    background-color: #FB3748 !important;
}

/* Button Background Color Override */
.wdt-button,
.wdt-button-holder .wdt-button {
    background-color: #FB3748 !important;
}

/* Button Hover Effect - Book Now Button */
#wdt-button-a5ddb12 .wdt-button:hover {
    background-color: #FFFFFF !important;
    color: #FB3748 !important;
}

#wdt-button-a5ddb12 .wdt-button:hover .wdt-button-text {
    color: #FB3748 !important;
}

/* Elementor Text Editor Color Override */
.elementor-widget-text-editor {
    color: #E1E4EA !important;
}

/* Elementor Text Editor Links Color Override */
.elementor-widget-text-editor a {
    color: #E1E4EA !important;
}

/* WDT Heading Color Override */
#wdt-heading-5a3f368 .wdt-heading-content-wrapper {
    color: #FFFFFF !important;
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Prevent text cropping on mobile - WDT Heading */
.wdt-heading-content-wrapper {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* The Evexia Heading - Neurial Grotesk Font & White Color */
#hometheevex .elementor-heading-title,
#hometheevex h2.elementor-heading-title,
#hometheevex h2,
.elementor-element-02cd54e .elementor-heading-title,
.elementor-element-02cd54e h2.elementor-heading-title,
.elementor-element-02cd54e h2,
.elementor-element.elementor-element-02cd54e .elementor-heading-title,
.elementor-element.elementor-element-02cd54e h2,
.elementor-widget-heading.elementor-element-02cd54e .elementor-heading-title,
.elementor-widget-heading.elementor-element-02cd54e h2,
.elementor-widget.elementor-element-02cd54e .elementor-heading-title,
.elementor-widget.elementor-element-02cd54e h2 {
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: bold !important;
    color: #FFFFFF !important;
}

/* More specific targeting for home page */
body.home #hometheevex .elementor-heading-title,
body.home #hometheevex h2,
body.home .elementor-element-02cd54e .elementor-heading-title,
body.home .elementor-element-02cd54e h2,
body.home .elementor-widget.elementor-element-02cd54e h2 {
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: bold !important;
    color: #FFFFFF !important;
}

/* Even more specific - target by data-id */
.elementor-element[data-id="02cd54e"] .elementor-heading-title,
.elementor-element[data-id="02cd54e"] h2,
.elementor-element[data-id="02cd54e"] h2.elementor-heading-title,
.elementor-widget-heading[data-id="02cd54e"] .elementor-heading-title,
.elementor-widget-heading[data-id="02cd54e"] h2 {
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: bold !important;
    color: #FFFFFF !important;
}

/* Ultra-specific - override any inline styles */
.elementor-element.elementor-widget-heading.elementor-element-02cd54e .elementor-heading-title.elementor-size-default {
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: bold !important;
    color: #FFFFFF !important;
}

/* Difference Heading - Scotch Text Condensed Font & #E8EFD3 Color */
#homedifference .elementor-heading-title,
#homedifference h2.elementor-heading-title,
#homedifference h2,
.elementor-element-10aeed5 .elementor-heading-title,
.elementor-element-10aeed5 h2.elementor-heading-title,
.elementor-element-10aeed5 h2,
.elementor-element.elementor-element-10aeed5 .elementor-heading-title,
.elementor-element.elementor-element-10aeed5 h2,
.elementor-widget-heading.elementor-element-10aeed5 .elementor-heading-title,
.elementor-widget-heading.elementor-element-10aeed5 h2,
.elementor-widget.elementor-element-10aeed5 .elementor-heading-title,
.elementor-widget.elementor-element-10aeed5 h2,
.elementor-element[data-id="10aeed5"] .elementor-heading-title,
.elementor-element[data-id="10aeed5"] h2,
.elementor-element.elementor-widget-heading.elementor-element-10aeed5 .elementor-heading-title.elementor-size-default {
    font-family: 'Scotch Text Condensed', 'Playfair Display', 'Times New Roman', Times, serif !important;
    font-weight: bold !important;
    font-style: italic !important;
    color: #E8EFD3 !important;
}

/* Reduce size of "What Makes Us Different" button */
#makesusdifferent .elementor-button,
#makesusdifferent a.elementor-button,
.elementor-element-0640779 .elementor-button,
.elementor-element-0640779 a.elementor-button,
.elementor-element[data-id="0640779"] .elementor-button,
.elementor-element[data-id="0640779"] a.elementor-button {
    padding: 8px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

#makesusdifferent .elementor-button-text,
.elementor-element-0640779 .elementor-button-text,
.elementor-element[data-id="0640779"] .elementor-button-text {
    font-size: 14px !important;
}

/* WDT Counter Widget Font & Color Override */
#wdt-counter-287bac8 .wdt-content-counter-number {
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

#wdt-counter-287bac8 .wdt-content-counter-suffix {
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #FB3748 !important;
    font-weight: bold !important;
}

/* WDT Counter Subtitle - Smaller Font Size */
#wdt-counter-287bac8 .wdt-content-subtitle {
    font-family: 'Neurial Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #FFFFFF !important;
    font-size: 0.7em !important;
}

/* Header Menu Link Color Override */
.wdt-header-menu .wdt-primary-nav li a {
    color: #E1E4EA !important;
}

/* Section Background Overlay - Add hand-cover.png on top of existing background */
.elementor-element-e5d54b3.elementor-section {
    position: relative;
}

@media screen and (max-width: 1023px) {
    .elementor-element-e5d54b3.elementor-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 500px !important;
        min-height: 500px !important;
        background-image: url('/wp-content/uploads/2024/10/hand-cover.png');
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        z-index: 1;
        pointer-events: none;
        opacity: 1;
    }
}

.elementor-element-e5d54b3.elementor-section > .elementor-container {
    position: relative;
    z-index: 2;
}

/* Fix background image visibility for cover-section-1232 - Match Elementor's exact selector */
.elementor-95 .elementor-element.elementor-element-877f054:not(.elementor-motion-effects-element-type-background),
.elementor-95 .elementor-element.elementor-element-877f054 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url(/wp-content/uploads/2024/10/hand-cover.png) !important;
    height: 500px !important;
    min-height: 500px !important;
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    display: block !important;
    background-attachment: local !important;
}

/* Also target the container directly */
#cover-section-1232.elementor-element,
.elementor-element.elementor-element-877f054 {
    height: 800px !important;
    min-height: 800px !important;
    background-image: url(/wp-content/uploads/2024/10/hand-cover.png) !important;
    background-size: contain !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure parent container doesn't add extra spacing */
.elementor-container.elementor-column-gap-no:has(#cover-section-1232),
.elementor-container.elementor-column-gap-no:has(.elementor-element-877f054) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Alternative: Target parent container more broadly */
.elementor-container.elementor-column-gap-no {
    position: relative;
}

.elementor-container.elementor-column-gap-no .elementor-element-877f054 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-position: center bottom !important;
}

/* Fix 100px gap on screens 1280px and below */
@media screen and (max-width: 1280px) {
    .elementor-95 .elementor-element.elementor-element-877f054:not(.elementor-motion-effects-element-type-background),
    .elementor-95 .elementor-element.elementor-element-877f054 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
    #cover-section-1232.elementor-element,
    .elementor-element.elementor-element-877f054 {
        margin-bottom: -100px !important;
        padding-bottom: 0 !important;
        background-position: center bottom !important;
    }
    
    .elementor-container.elementor-column-gap-no:has(#cover-section-1232),
    .elementor-container.elementor-column-gap-no:has(.elementor-element-877f054) {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
    }
    
    .elementor-container.elementor-column-gap-no .elementor-element-877f054 {
        bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Target the e-con-inner to remove any padding */
    .elementor-element-877f054 .e-con-inner {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Hide background image on screens less than 1024px */
@media screen and (max-width: 1023px) {
    .elementor-95 .elementor-element.elementor-element-877f054:not(.elementor-motion-effects-element-type-background),
    .elementor-95 .elementor-element.elementor-element-877f054 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
    #cover-section-1232.elementor-element,
    .elementor-element.elementor-element-877f054 {
        background-image: none !important;
    }
}

/* Fix text cropping on mobile screens */
@media screen and (max-width: 768px) {
    .wdt-heading-content-wrapper {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* Ensure parent containers don't cause overflow */
    .elementor-widget-wdt-heading,
    .elementor-widget-container {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* WPForms - Make all fields same width */
#wpforms-form-1793 input[type="text"],
#wpforms-form-1793 input[type="email"],
#wpforms-form-1793 input[type="tel"],
#wpforms-form-1793 input[type="name"],
#wpforms-form-1793 textarea,
#wpforms-form-1793 .wpforms-field input,
#wpforms-form-1793 .wpforms-field textarea,
#wpforms-form-1793 .wpforms-field-medium,
#wpforms-form-1793 input.wpforms-field-medium,
#wpforms-form-1793 textarea.wpforms-field-medium,
#wpforms-form-1793 #wpforms-1793-field_1,
#wpforms-form-1793 #wpforms-1793-field_2,
#wpforms-form-1793 #wpforms-1793-field_3,
#wpforms-form-1793 #wpforms-1793-field_4 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Ensure form container and fields allow full width */
#wpforms-form-1793 .wpforms-field-container {
    width: 100% !important;
    max-width: 100% !important;
}

#wpforms-form-1793 .wpforms-field,
#wpforms-form-1793 .wpforms-field-container > .wpforms-field {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Remove any inline width styles that might be set */
#wpforms-form-1793 .wpforms-field input,
#wpforms-form-1793 .wpforms-field textarea {
    width: 100% !important;
    max-width: 100% !important;
}

/* Replace logo on Contact Us page with dark logo */
/* Method: Hide original logo and show dark logo via parent background */
body.page-id-116 .no-header-logo a,
body.page-id-116 .wdt-site-logo a,
body.page-id-116 .site-logo a,
body.page-id-116 header a[href*="home"],
body[class*="contact"] .no-header-logo a,
body[class*="contact"] .wdt-site-logo a,
body[class*="contact"] .site-logo a,
body[class*="contact"] header a[href*="home"] {
    background-image: url('/wp-content/uploads/2024/10/Frame.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: inline-block !important;
    position: relative !important;
}

body.page-id-116 .no-header-logo a img,
body.page-id-116 .wdt-site-logo a img,
body.page-id-116 .site-logo a img,
body.page-id-116 header a[href*="home"] img,
body[class*="contact"] .no-header-logo a img,
body[class*="contact"] .wdt-site-logo a img,
body[class*="contact"] .site-logo a img,
body[class*="contact"] header a[href*="home"] img {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Ensure logo link has proper dimensions */
body.page-id-116 .no-header-logo a,
body.page-id-116 .wdt-site-logo a,
body[class*="contact"] .no-header-logo a,
body[class*="contact"] .wdt-site-logo a {
    min-width: 193px !important;
    min-height: 24px !important;
}