/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Universal rule for top-level parent containers only */
body [data-elementor-type="wp-page"] > .e-con,
body [data-elementor-type="wp-post"] > .e-con,
body [data-elementor-type="archive"] > .e-con,
body [data-elementor-type="single"] > .e-con {
    
    /* Responsive Side Padding */
    padding-left: clamp(20px, 4.5vw, 98px) !important;
    padding-right: clamp(20px, 4.5vw, 98px) !important;

    /* Responsive Top & Bottom Spacing (Symmetrical Approach) */
    padding-top: clamp(32px, 4vw, 75px) !important;
    padding-bottom: clamp(32px, 4vw, 75px) !important;
}


/* Layout Spacing Utilities (Elementor Flexbox Overrides) */
html body .e-con.gap-loose {
    --gap: clamp(36px, 5vw, 80px) !important;
    --column-gap: clamp(36px, 5vw, 80px) !important;
    gap: clamp(36px, 5vw, 80px) !important;
    column-gap: clamp(36px, 5vw, 80px) !important;
}

html body .e-con.gap-medium {
    --gap: clamp(24px, 3vw, 48px) !important;
    --row-gap: clamp(24px, 3vw, 48px) !important;
    --column-gap: clamp(24px, 3vw, 48px) !important;
    gap: clamp(24px, 3vw, 48px) !important;
    row-gap: clamp(24px, 3vw, 48px) !important;
    column-gap: clamp(24px, 3vw, 48px) !important;
}

html body .e-con.gap-sm {
    --gap: clamp(24px, 3vw, 36px) !important;
    --row-gap: clamp(24px, 3vw, 36px) !important;
    --column-gap: clamp(24px, 3vw, 36px) !important;
    gap: clamp(24px, 3vw, 48px) !important;
    row-gap: clamp(24px, 3vw, 36px) !important;
    column-gap: clamp(24px, 3vw, 36px) !important;
}

html body .e-con.gap-tight {
    --gap: 16px !important;
    --row-gap: 16px !important;
    --column-gap: 16px !important;
    gap: 16px !important;
    row-gap: 16px !important;
    column-gap: 16px !important;
}

/* -----------------------------------------
   HEADER STICKY SHRINK EFFECT (MAX SPECIFICITY FIX)
----------------------------------------- */

/* 1. Base transition rules */
html body .derma-sticky-header {
    transition: padding 0.5s ease-in-out, min-height 0.7s ease-in-out, box-shadow 0.5s ease-in-out !important;
    width: 100% !important;
}

html body .derma-sticky-header img {
    transition: max-width 0.5s ease-in-out !important;
}

/* 2. THE SHRINK EFFECT: Overpowering Elementor's Container defaults */
html body .derma-sticky-header.elementor-sticky--effects {
    /* Force padding down using standard CSS */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    
    /* Override Elementor's hidden Flexbox variables just in case */
    --padding-top: 5px !important;
    --padding-bottom: 5px !important;
    
    /* Strip away any minimum height keeping the box open */
    min-height: auto !important; 
    
    /* Lock the position */
    left: 0 !important;
    top: 0 !important;
    
    /* Add the shadow */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05) !important; 
}

/* 3. Shrink the logo */
html body .derma-sticky-header.elementor-sticky--effects img {
    max-width: 70% !important; 
}

/* Add this near the top with your other transition rules */
html body .derma-sticky-header .elementor-button {
    transition: padding 0.5s ease-in-out, font-size 0.4s ease-in-out !important;
}

/* Add this at the bottom to trigger the shrink effect on the button */
html body .derma-sticky-header.elementor-sticky--effects .elementor-button {
    /* Reduce the button padding (Top/Bottom, Left/Right) */
    padding: 10px 20px !important; 
    
    /* Slightly reduce the font size to match the smaller button */
    font-size: 14px !important; 
}

/* -----------------------------------------
   TRANSPARENT HEADER STICKY (GLASSMORPHISM)
----------------------------------------- */

/* 1. Base transition rules (Applies to ALL Devices) */
html body .derma-transparent-header {
    transition: padding 0.4s ease-in-out, min-height 0.4s ease-in-out, background-color 0.4s ease-in-out, backdrop-filter 0.4s ease-in-out !important;
    width: 100% !important;
    background-color: transparent; 
}

/* Base transition for the new image widget */
html body .derma-transparent-header .derma-logo img,
html body .derma-transparent-header .elementor-button {
    transition: all 0.4s ease-in-out !important;
}

/* 2. THE STICKY EFFECT: Frosted Glass Background (Applies to ALL Devices) */
html body .derma-transparent-header.elementor-sticky--effects {
    left: 0 !important;
    top: 0 !important;
    background-color: rgba(0, 0, 0, 0.4) !important; 
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important; 
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15) !important; 
}

/* 3. THE SHRINK EFFECT: (Applies ONLY to Desktop & Tablet) */
@media (min-width: 768px) {
    
    /* Shrink the padding */
    html body .derma-transparent-header.elementor-sticky--effects {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        --padding-top: 10px !important;
        --padding-bottom: 10px !important;
        min-height: auto !important;
    }

    /* FORCE shrink the standard Image Widget */
    html body .derma-transparent-header.elementor-sticky--effects .derma-logo img {
        width: 70% !important;
        max-width: 70% !important; 
    }

    /* Shrink the button */
    html body .derma-transparent-header.elementor-sticky--effects .elementor-button {
        padding: 10px 20px !important;
        font-size: 14px !important; 
    }
}

/* -----------------------------------------
   GLOBAL SCROLL FADE-IN ANIMATION (700ms)
----------------------------------------- */

/* 1. The initial hidden state */
.derma-fade-init {
    opacity: 0;
    transform: translateY(15px); /* Subtle upward float */
    transition: opacity 0.7s ease-out, transform 0.7s ease-out !important;
}

/* 2. The visible state (triggered by JavaScript) */
.derma-fade-init.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Prevent headers/footers from fading in if they get caught */
header .derma-fade-init,
footer .derma-fade-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* -----------------------------------------
   CONTACT FORM 7
----------------------------------------- */
.dp-form {
  --dp-text: #12110F;
  --dp-line: #12110F66;
  --dp-btn: #58595B;
}

/* Layout */
.dp-form-row {
  display: flex;
  gap: 40px;
}

.dp-form-row .dp-form-group {
  flex: 1;
}

.dp-form-group.full {
  width: 100%;
}

/* Inputs */
.dp-form-group input[type="text"],
.dp-form-group input[type="tel"],
.dp-form-group input[type="email"],
.dp-form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--dp-line);
  background: transparent;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--dp-text);
  outline: none;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.dp-form-group textarea {
  min-height: 60px;
  resize: vertical;
}

/* Placeholder color */
.dp-form-group input::placeholder,
.dp-form-group textarea::placeholder {
  color: var(--dp-text);
  opacity: 1;
}

.dp-form-group input:focus,
.dp-form-group textarea:focus {
  border-bottom: 1px solid var(--dp-text);
}

/* Checkbox / acceptance */
.dp-checkbox-group {
  margin: 20px 0;
}

.dp-checkbox-group .wpcf7-list-item {
  margin: 0;
}

.dp-checkbox-group .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.dp-checkbox-group .wpcf7-list-item-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dp-text);
}

.dp-checkbox-group input[type="checkbox"] {
  margin: 3px 0 0 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--dp-btn);
}

/* Error/validation message font size */
.dp-form .wpcf7-not-valid-tip  {
  font-size: 16px;
}

.dp-form .wpcf7-response-output  {
  font-size: 16px !important;
}

/* Reduce textarea height */
textarea.wpcf7-form-control.wpcf7-textarea {
    height: 70px !important;
}

/* Submit button */
.dp-submit-wrap input[type="submit"] {
  background: var(--dp-btn);
  color: #fff;
  border: none;
  padding: 20px 40px;
  font-size: 18px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

/* Mobile */
@media (max-width: 767px) {
  .dp-form-row {
    flex-direction: column;
    gap: 0;
  }

  .dp-submit-wrap input[type="submit"] {
    padding: 15px 30px;
  }
}

.elementor-widget-loop-carousel {
    position: relative;
    /* remove padding-top - no need to push the carousel down anymore */
}

.elementor-widget-loop-carousel .elementor-swiper-button-prev,
.elementor-widget-loop-carousel .elementor-swiper-button-next {
    position: absolute !important;
    top: -100px !important; /* pulls arrows up into the title's row - adjust this value */
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 36px;
    height: 36px;
}

.elementor-widget-loop-carousel .elementor-swiper-button-next {
    right: 0 !important;
}

.elementor-widget-loop-carousel .elementor-swiper-button-prev {
    right: 44px !important;
}

@media (max-width: 767px) {
    .elementor-widget-loop-carousel .elementor-swiper-button-prev,
    .elementor-widget-loop-carousel .elementor-swiper-button-next {
        display: none !important;
    }
}