/*
Theme Name: Sunday Salon
Theme URI: https://sunday.salon
Description: Custom Theme for Sunday Salon
Template: Divi
Version: 1.0.7
Text Domain: sunday-salon
*/


/* =Theme customization starts here
------------------------------------------------------- */

/*
/////////////////////////////////////////////////
HEADER
/////////////////////////////////////////////////
*/

body.et_pb_pagebuilder_layout #main-header,
body.et_pb_pagebuilder_layout #top-header {
  background-color: rgba(0, 0, 0, 0) !important;
}

#main-header,
#top-header,
body.single #main-header,
body.single #page-container #main-header,
body.single #top-header,
body.single #page-container #top-header,
body.single-post #main-header,
body.single-post #page-container #main-header,
body.single-project #main-header,
body.single-project #page-container #main-header,
body.single.et_pb_pagebuilder_layout #main-header,
body.single.et_pb_pagebuilder_layout #top-header {
  background-color: rgba(0, 0, 0, 1) !important;
}

#main-header.et-fixed-header,
body #main-header.et-fixed-header,
body #page-container #main-header.et-fixed-header,
body.single #page-container #main-header.et-fixed-header,
body.et_pb_pagebuilder_layout #main-header.et-fixed-header,
#top-header.et-fixed-header,
body #top-header.et-fixed-header,
body #page-container #top-header.et-fixed-header,
body.single #page-container #top-header.et-fixed-header,
body.et_pb_pagebuilder_layout #top-header.et-fixed-header {
  background-color: rgba(0, 0, 0, .8) !important;
}

#main-header {
  box-shadow: 0 0px 50px rgba(0, 0, 0, .1);
}

#main-header.et-fixed-header {
  box-shadow: 0 0px 25px rgba(0, 0, 0, .1) !important;
}

#top-header #et-info {
  position: relative;
  top: 3px;
}

#et-info-phone:before,
#et-info-email:before {
  margin-right: 8px;
  position: relative;
  top: 2px;
}

#et-secondary-menu {
  position: relative;
  top: 2px;
}

#et-secondary-menu a {
  font-size: 18px;
}

@media screen and (max-width : 600px) {
  #top-header #et-info {
    line-height: 1.5em;
  }
}


/*
/////////////////////////////////////////////////
2026 PREMIUM DESKTOP NAVIGATION (UPGRADE)
/////////////////////////////////////////////////
*/

/* 1. PREMIUM BASE & GLASSMORPHISM */
#top-menu ul.sub-menu {
  display: flex !important;
  flex-direction: column !important;
  width: max-content !important;
  min-width: 260px !important;
  max-width: 400px !important;

  background-color: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  padding: 10px 0 !important;

  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;

  /* Overrides for default header positioning */
  margin-left: 0 !important;
  border-top: none !important;
}

#top-menu li:hover>ul.sub-menu {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* 2. TOP-LEVEL MENU UX */
#top-menu>li>a {
  transition: color 0.3s ease !important;
  position: relative;
}

#top-menu>li.menu-item-has-children>a {
  padding-right: 0px !important;
  /* Removed absolute padding */
}

/* Force the arrow to sit inline perfectly next to the text */
#top-menu>li.menu-item-has-children>a::after {
  content: "3" !important;
  /* Divi down arrow */
  font-family: 'ETmodules' !important;
  position: relative !important;
  display: inline-block !important;
  top: 0 !important;
  right: auto !important;
  margin-left: 6px !important;
  transform: none !important;
  transition: transform 0.3s ease !important;
}

/* Smoothly rotate 180deg on hover */
#top-menu>li.menu-item-has-children:hover>a::after {
  transform: rotate(180deg) !important;
}

/* Premium Animated Underline for Top-Level Links */
#top-menu>li>a::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #A68064;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#top-menu>li>a:hover::before {
  width: 80%;
}

/* Premium Animated Underline for Top-Level Links */
#top-menu>li>a::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #A68064;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#top-menu>li>a:hover::before {
  width: 80%;
}

/* 3. DROPDOWN LIST ITEM STACKING */
#top-menu ul.sub-menu li {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  margin: 0 !important;
}

/* 4. DROPDOWN LINK SPACING & TYPOGRAPHY */
#top-menu ul.sub-menu li a {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  padding: 12px 45px 12px 24px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  transition: all 0.3s ease !important;
  border-left: 3px solid transparent !important;
}

/* 5. DROPDOWN LUXURY HOVER MICRO-ANIMATIONS */
#top-menu ul.sub-menu li a:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-left: 3px solid #A68064 !important;
  padding-left: 28px !important;
}

/* 6. NESTED MENU (3RD LEVEL) PLACEMENT */
#top-menu ul.sub-menu li ul.sub-menu {
  position: absolute !important;
  left: calc(100% + 5px) !important;
  top: -10px !important;
}

/* 7. DROPDOWN ICON ALIGNMENT (SUB-MENUS ONLY) */
#top-menu ul.sub-menu .menu-item-has-children>a::after {
  position: absolute !important;
  top: 50% !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  transition: transform 0.3s ease !important;
  content: "3";
  /* Divi arrow */
  font-family: 'ETmodules' !important;
}

#top-menu ul.sub-menu .menu-item-has-children:hover>a::after {
  transform: translateY(-50%) rotate(90deg) !important;
}

/* Preserve legacy custom elements */
li.sfly_social_media_menu_icon .fab {
  font-weight: 300;
}

#et_top_search {
  margin-top: 0;
}


/*
/////////////////////////////////////////////////
NAVIGATION FIXED HEADER
/////////////////////////////////////////////////
*/

.et-fixed-header #logo {
  max-height: 80% !important;
  top: 0;
  left: 0;
}

#main-header.et-fixed-header {
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .05) !important;
}

#main-header.et-fixed-header .container {
  padding-right: 10px;
  padding-left: 10px;
}

.et_header_style_left .et-fixed-header #et-top-navigation {
  padding-top: 35px;
  padding-right: 10px;
}

.et_header_style_left .et-fixed-header #et-top-navigation li a:hover {
  color: #A68064 !important;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile_nav ul#mobile_menu .current_page_item>a {
  color: #fff;
}

.mobile_nav ul#mobile_menu li ul li a {
  font-size: 1.05em !important;
  margin: auto;
  padding-top: 0.2em;
}

.et_mobile_menu li a:hover {
  color: #A68064 !important;
  transition: all .2s ease-in-out;
}

.mobile_nav.opened .mobile_menu_bar:before {
  content: "\4d";
}

/* NESTING MOBILE MENU */
#main-header .et_mobile_menu .menu-item-has-children>a {
  background-color: transparent;
  position: relative;
}

#main-header .et_mobile_menu .menu-item-has-children>a:after {
  font-family: 'ETmodules';
  text-align: center;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  position: absolute;
}

#main-header .et_mobile_menu .menu-item-has-children>a:after {
  font-size: 27px;
  content: '\4c';
}

#main-header .et_mobile_menu .menu-item-has-children.visible>a:after {
  content: '\4d';
}

#main-header .et_mobile_menu ul.sub-menu {
  display: none !important;
  visibility: hidden !important;
  transition: all 1.5s ease-in-out;
}

#main-header .et_mobile_menu .visible>ul.sub-menu {
  display: block !important;
  visibility: visible !important;
}

/* change logo for fixed header (quick and easy way) */
.et-fixed-header #logo {
  content: url(https://sunday.salon/wp-content/uploads/2023/11/SS_Wordmark_White.png);
}

/*
/////////////////////////////////////////////////
BOOK NOW CTA
/////////////////////////////////////////////////
*/

.buynow a {
  background: rgba(0, 0, 0, 0);
  color: #fff;
  padding: 3px 12px 0 18px !important;
  line-height: 44px;
  text-align: center !important;
  margin-top: -18px;
  border: 2px solid #fff;
}

.buynow a:hover,
.et-fixed-header #top-menu .buynow a:hover {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff;
  opacity: 1 !important;
}

.et-fixed-header #top-menu .buynow a {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  opacity: 1 !important;
}

.et-fixed-header #top-menu .buynow a:hover {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #A68064 !important;
  opacity: 1 !important;
}

/*
/////////////////////////////////////////////////
LOGO Container to fix vertical scroll overlap
/////////////////////////////////////////////////
*/

.et_header_style_left .logo_container {
  position: absolute;
  height: 100%;
  width: 95%
}

/*
/////////////////////////////////////////////////
KEN BURNS - LINEAR
/////////////////////////////////////////////////
*/

@media only screen and (min-width: 767px) {
  .sundayKenBurnsHeader .et-pb-parallax-background {
    animation: Kenburns 45s forwards;
  }

  .sundayKenBurnsSection .et-pb-parallax-background {
    animation: Kenburns 45s infinite;
  }
}

@keyframes Kenburns {
  0% {
    opacity: 0;
    transform: scale3d(1.05, 1.05, 1.05) translate3d(-15px, 0px, 0px);
    animation-timing-function: linear;
  }

  1% {
    opacity: 1;
  }

  100% {
    transform: scale3d(1.3, 1.3, 1.3) translate3d(-25px, -55px, 0px);
  }
}

/* ==========================================================================
   DOWN ARROW ANIMATION
   ========================================================================== */
.et_pb_fullwidth_header_scroll {
  opacity: .6;
}

span.scroll-down.et-pb-icon {
  cursor: pointer;
  height: 60px;
  width: 80px;
  margin: 0px 0 0 -40px;
  line-height: 60px;
  position: absolute;
  left: 50%;
  bottom: 30px;
  color: #fff;
  text-align: center;
  font-size: 70px;
  z-index: 100;
  text-decoration: none;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
  animation: ca3_fade_move_down 2s ease-in-out infinite;
}

@keyframes ca3_fade_move_down {
  0% {
    transform: translate(0, -20px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translate(0, 20px);
    opacity: 0;
  }
}

/*
/////////////////////////////////////////////////
NAVIGATION MOBILE (Max-Width 980px)
/////////////////////////////////////////////////
*/

@media screen and (max-width : 980px) {
  #main-header .container {
    width: 100% !important;
    padding: 5px 10px;
  }

  .et_mobile_menu {
    border: none;
    padding: 25px 25px;
    padding-top: 80px;
    box-shadow: 0 30px 60px -15px rgba(166, 128, 100, 0.2);
    background-color: #000;
    background-image: url("https://sunday.salon/wp-content/uploads/2023/11/Hair_Stylist_1_MOBILE_PreEdit-850-x-1275_edited.jpg");
    background-size: cover;
    background-position: center;
    min-height: 95vh;
  }

  .et_mobile_menu:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .80);
    transition: all .3s ease-in-out;
    z-index: -1;
  }

  .et_mobile_menu li a {
    text-align: left !important;
    color: #fff;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 15px 5%;
  }

  .et_mobile_menu li li {
    padding-left: 0;
  }

  .et_mobile_menu li li a {
    font-size: 18px;
    padding: 6px 5%;
  }

  .et_mobile_menu li li:last-child a {
    padding-bottom: 12px;
  }

  .et_fixed_nav #main-header.et-fixed-header {
    position: fixed;
    background: rgba(255, 255, 255, 0.8);
    height: 65px !important;
  }

  .et_fixed_nav #top-header.et-fixed-header {
    position: fixed;
    background: rgba(255, 255, 255, 0.8);
    height: 36px !important;
  }

  .et-fixed-header .logo_container {
    height: 55px !important;
  }

  .et-fixed-header .mobile_menu_bar {
    padding-bottom: 5px !important;
  }

  .et-fixed-header #et_search_icon {
    margin-top: 5px;
    position: fixed;
  }

  .et-search-form input {
    width: 70%;
  }

  .et-fixed-header .mobile_menu_bar:before {
    font-size: 45px !important;
  }

  .et_header_style_left .et-fixed-header #et-top-navigation {
    padding-top: 5px !important;
  }

  .et_fixed_nav #et-top-navigation {
    transition: none !important;
  }

  #logo {
    width: auto;
  }

  .buynow a {
    background-color: #A68064;
    border: 2px solid #A68064 !important;
    padding: 20px 10px 21px 10px;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 27px;
    box-shadow: 0 20px 40px -10px rgba(166, 128, 100, 0.5);
    width: 210px;
  }

  .buynow a:hover,
  .et-fixed-header #top-menu .buynow a:hover {
    background: #000 !important;
    color: #000;
    border: 2px solid #A68064;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   LIQUID GLASS & UX ENGINE
   ========================================================================== */

/* 4. Shimmer Sweep Animation for Text */
body .shimmer-text h1, 
body .shimmer-text h2, 
body .shimmer-text h3,
body .shimmer-text h4,
body .shimmer-text h5,
body .shimmer-text h6,
body .shimmer-text p {
    display: inline-block !important;
    background-image: linear-gradient(-75deg, #c5a880 0%, #c5a880 20%, #f5ecd9 50%, #c5a880 80%, #c5a880 100%) !important;
    background-size: 200% auto !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: luxuryShimmerSweep 5s linear infinite !important;
}

@keyframes luxuryShimmerSweep {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes noiseShift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-5%, 5%);
  }

  40% {
    transform: translate(5%, -5%);
  }

  60% {
    transform: translate(-5%, -5%);
  }

  80% {
    transform: translate(5%, 5%);
  }
}

/* ========================================= */
/* SUNDAY SALON: PREMIUM EDITORIAL CAROUSEL  */
/* ========================================= */

/* --- PHASE 1: TOUCH SCREEN OPTIMIZATION --- */
/* Hide arrows on ALL touch devices (Tablets & Phones) */
@media (max-width: 980px) {
    .sunday-editorial-loop .et_pb_group_carousel_arrow {
        display: none !important;
    }
}

/* --- PHASE 2: DESKTOP HOVER FOCUS --- */
@media (min-width: 981px) {
    /* STRICT TRANSITIONS: Only animate opacity and transform */
    .sunday-editorial-loop .et_pb_image {
        transition: opacity 0.4s ease-out, transform 0.4s ease-out !important;
        position: relative; 
    }
    
    /* ONLY dim the OTHER images when one specific photo is actively hovered */
    .sunday-editorial-loop:has(.et_pb_image:hover) .et_pb_image:not(:hover) {
        opacity: 0.6 !important;
        transform: scale(0.98) !important;
    }
    
    /* Pop the specific photo being hovered */
    .sunday-editorial-loop .et_pb_image:hover {
        transform: scale(1.02) !important;
        z-index: 10 !important;
    }
}

/* ==========================================================================
   SUNDAY SALON: NATIVE RELATED POSTS ENGINE (ZERO-PLUGIN 5-COL GRID)
   ========================================================================== */

.ss-related-posts {
    width: 100%;
    margin: 40px 0 20px 0;
    box-sizing: border-box;
}

.ss-related-posts__heading {
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 24px 0;
    padding: 0;
}

.ss-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.ss-related-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ss-related-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: opacity 0.25s ease;
}

.ss-related-card__link:hover {
    text-decoration: none;
    opacity: 0.85;
}

.ss-related-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f4f4f4;
    border-radius: 2px;
}

.ss-related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ss-related-card__link:hover .ss-related-card__img {
    transform: scale(1.04);
}

.ss-related-card__title {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin: 10px 0 0 0;
    padding: 0;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.ss-related-card__link:hover .ss-related-card__title {
    color: #444444;
}

/* Divi Visual Builder Instant Mock */
.ss-related-posts--builder-mock {
    opacity: 0.85;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    padding: 20px;
    background: #fafafa;
}

.ss-related-card--mock .ss-related-card__media--mock {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    color: #999;
}

.ss-mock-icon {
    font-size: 1.5rem;
    color: #bbb;
}

/* Responsive Breakpoints */
/* Tablet: 2 cards per row */
@media (max-width: 980px) {
    .ss-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .ss-related-card__title {
        font-size: 0.95rem;
        margin-top: 10px;
    }
}

/* Mobile: 1 card per row stacked */
@media (max-width: 767px) {
    .ss-related-posts {
        margin: 32px 0 20px 0;
    }
    
    .ss-related-posts__heading {
        margin-bottom: 20px;
        font-size: 1.05rem;
    }
    
    .ss-related-posts__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .ss-related-card {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    
    .ss-related-card__title {
        font-size: 1.02rem;
        line-height: 1.4;
        margin-top: 12px;
    }
}
