/*
 Theme Name: Artistry Lounge Hair studio
 Theme URI:  https://dev.clelandco.com
 Description: Beautiful Multipurpose Theme Template for Divi
 Author:     Jeremy C.
 Author URI: https://dev.clelandco.com
 Template:   Divi
 Version:    1.5
 License:    GNU General Public License v2 or later
 License URI:http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Base font size for root element */
html {
  font-size: 16px; /* 1rem = 16px */
}

/* Define the custom font */
@font-face {
  font-family: "Abril Fatface";
  src: url("/wp-content/themes/Artistry_lounge_Hair_Studio/fonts/AbrilFatface-Regular.woff2")
      format("woff2"),
    url("/wp-content/themes/Artistry_lounge_Hair_Studio/fonts/AbrilFatface-Regular.woff")
      format("woff"),
    url("/wp-content/themes/Artistry_lounge_Hair_Studio/fonts/AbrilFatface-Regular.ttf")
      format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/wp-content/themes/Artistry_lounge_Hair_Studio/fonts/PublicSans-VariableFont_wght.ttf")
      format("truetype"),
    url("/wp-content/themes/Artistry_lounge_Hair_Studio/fonts/PublicSans-Italic-VariableFont_wght.ttf")
      format("truetype");
  font-weight: 100 900;
  font-style: normal, italic;
  font-display: swap;
}

body {
  font-size: 1rem; /* 16px */
  font-family: "Public Sans", sans-serif;
}

h1 {
  font-size: 2.5rem; /* 40px */
  font-family: "Abril Fatface", serif;
}

h2 {
  font-size: 2rem; /* 32px */
  font-family: "Abril Fatface", serif;
}

h3 {
  font-size: 1.75rem; /* 28px */
  font-family: "Abril Fatface", serif;
}

h4 {
  font-size: 1.5rem; /* 24px */
  font-family: "Abril Fatface", serif;
}

h5 {
  font-size: 1.25rem; /* 20px */
  font-family: "Abril Fatface", serif;
}

h6 {
  font-size: 1rem; /* 16px */
  font-family: "Abril Fatface", serif;
}

p {
  font-size: 1rem; /* 16px */
  font-family: "Public Sans", Helvetica, Arial, Lucida, sans-serif;
}

/* Media Queries for Responsiveness */

/* For tablets */
@media (max-width: 768px) {
  html {
    font-size: 15px; /* 1rem = 15px */
  }
}

/* For mobile devices */
@media (max-width: 480px) {
  html {
    font-size: 14px; /* 1rem = 14px */
  }
}

/* Hero Image Optimization
----------------------------------------*/
.hero-section img,
.et_pb_section.et_pb_section_0 .et_pb_module img,
.home .et_pb_fullwidth_header_container img {
  width: 100%;
  height: auto;
  /* Removing will-change as it can cause performance issues */
  /* will-change: transform; */
  transition: none; /* Disable any transitions */
}

/* Removing hero animation as it can be choppy */
/* 
@keyframes hero-reveal {
  from {
    opacity: 0.95;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
*/

/* Only animate text elements, not images */
.et_pb_section_0 .et_pb_text,
.et_pb_section_0 .et_pb_button,
.hero-section .et_pb_text,
.hero-section .et_pb_button {
  /* Keeping text animations but removing image animations */
  animation: text-reveal 0.7s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes text-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery image hover effects */
.salon-gallery .et_pb_gallery_image {
  overflow: hidden;
  position: relative;
}

.salon-gallery .et_pb_gallery_image img {
  transition: transform 0.5s ease;
}

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

.salon-gallery .et_pb_gallery_image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.salon-gallery .et_pb_gallery_image:hover::before {
  opacity: 1;
}

/* Remove any transform effects from hero section */
.et_pb_section_0 img {
  /* Removing will-change */
  /* will-change: transform; */
  transform: none !important;
  transition: none !important;
}

/* Improve image loading appearance */
img.lazyload {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
img.lazyloaded {
  opacity: 1;
}

/* Prevent content jumps during loading */
.et_pb_image_wrap {
  display: block;
  position: relative;
}

.et_pb_image_wrap img {
  display: block;
  width: 100%;
}

/* Portrait-specific styling */
.portrait-image img,
.et_pb_image.portrait-style img {
  aspect-ratio: 2/3;
  object-fit: cover;
  width: 100%;
  transition: all 0.4s ease;
}

/* Before/After styling for salon photos */
.before-after-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.before-after-container > div {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 700px;
}
.before-after-container img {
  width: 100%;
  height: auto;
}

/* FAQ Section
----------------------------------------*/

.faq .et_pb_column .et_pb_promo {
  background-color: #f9f9f9;
}

.faq .et_pb_promo h2,
.faq .et_pb_promo strong {
  position: relative;
}

.faq .et_pb_promo h2:before {
  content: "Q";
  font-weight: 900 !important;
  display: block;
  position: absolute;
  left: -29px;
  top: 0;
  color: #726b35;
  font-size: 18px !important;
}

.faq .et_pb_promo strong {
  font-weight: 400;
}

.faq .et_pb_promo strong:before {
  content: "A";
  font-weight: 600 !important;
  display: block;
  position: absolute;
  left: -29px;
  top: 0;
  color: #726b35;
  font-size: 18px !important;
}

/* Target the Divi Gallery Module with the custom class */
.custom-masonry .et_pb_gallery_items {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px; /* Adjust the gap between columns */
  row-gap: 16px; /* Adjust the gap between rows */
}

/* Style individual gallery items */
.custom-masonry .et_pb_gallery_item {
  box-sizing: border-box;
  flex: 1;
  margin: 0;
  break-inside: avoid;
  padding: 15px; /* Adjust the padding around each item */
}

/* You can also target specific items to vary the width */
.custom-masonry .et_pb_gallery_item:nth-child(4n) {
  flex: 2;
}

/* 
Masonry Gallery by Artistry Lounge Hair Studio
*/
.alhs-gallery-masonry .et_pb_gallery .et_pb_gallery_items {
  column-count: 3; /* number of columns for desktop */
  column-gap: 15px; /* column spacing */
}
@media only screen and (max-width: 900px) {
  .alhs-gallery-masonry .et_pb_gallery .et_pb_gallery_items {
    column-count: 2; /* number of columns for tablet devices */
  }
}
@media only screen and (max-width: 767px) {
  .alhs-gallery-masonry .et_pb_gallery .et_pb_gallery_items {
    column-count: 1; /* number of columns for mobile devices */
  }
}
.alhs-gallery-masonry .et_pb_gallery .et_pb_gallery_items .et_pb_gallery_item {
  width: 100%;
  margin: 0px 0px 10px 0 !important; /* replace 10px to change row spacing */
  float: none !important;
}

/* Artistry Lounge Testimonials
----------------------------------------*/

.alhs_testimonials .et_pb_testimonial:before {
  display: none;
}

.alhs_testimonials .et_pb_testimonial_portrait {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
}

.alhs_testimonials .et_pb_testimonial_portrait:before {
  font-size: 65px;
  position: absolute;
  top: -4px;
  left: 78px;
  font-family: ETmodules !important;
  background: 0 0;
  content: "{";
  width: 0;
  height: 0;
  box-shadow: none;
  color: #9d8a46;
}

.alhs_testimonials .et_pb_testimonial_content h3 {
  line-height: 1.2em;
}

.equal-height et_pb_testimonial {
  display: flex;
  flex-direction: column;
}
.equal-height .et_pb_testimonial .et_pb_testimonial_description {
  flex-grow: 1;
}

/* Artistry Lounge Steps
----------------------------------------*/

.alhs_steps {
  counter-reset: what-we-do;
}

.alhs_steps .et_pb_module_header {
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
}

.alhs_steps .et_pb_module_header::before {
  counter-increment: what-we-do;
  content: "0" counter(what-we-do);
  position: absolute;
  z-index: -1;
  color: #f2efea;
  position: absolute;
  left: 0px;
  width: 100%;
  font-size: 80px;
  text-shadow: 1px 1px 0px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff,
    -1px 1px 0 #fff;
}

.alhs_gridblog .entry-title {
  margin-top: 0px;
  padding-bottom: 5px;
}

.alhs_gridblog .et_pb_image_container {
  margin: -40px -40px 40px;
}

.alhs_gridblog .et_pb_post .entry-featured-image-url {
  display: block;
  position: relative;
  margin-bottom: 30px;
  height: 340px;
  object-fit: cover;
  overflow: hidden;
}

.alhs_gridblog .et_pb_image_container img {
  min-width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  max-width: 100%;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;

  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

.alhs_gridblog .et_pb_blog_grid .et_pb_post {
  margin-bottom: 80px;
  width: 100%;
  padding: 40px;
  background-color: #fff;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-shadow: 0px 20px 90px #faf5f2;
  border: none;
  text-align: center;
}

.alhs_gridblog .et_pb_post .post-meta {
  margin-bottom: 20px;
}

.alhs_gridblog article a[rel="category tag"],
.archive article a[rel="category tag"] {
  color: #726b35 !important;
}

/*.alhs_gridblog article a[rel="category tag"]:after, 
.alhs_gridblog .published:after, 
.alhs_gridblog .et_pb_post .post-meta a:after, 
.alhs_gridblog .author:after,
.archive article a[rel="category tag"]:after,
.archive .author:after {
    content: ',';
    margin-left: 2px;
    margin-right: 2px;
}

.alhs_gridblog  article a[rel="category tag"]:last-child:after,
.charlize_blog .et_pb_post .post-meta a:last-child:after,
.archive  article a[rel="category tag"]:last-child:after{
    display: none;
}*/

/* Read more
------------------------------------------*/

.alhs_gridblog .et_pb_post a.more-link,
.alhs_blogalternate .et_pb_post a.more-link {
  color: #726b35;
  background: transparent;
  padding: 10px 20px;
  border: 5px solid #726b35;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.alhs_gridblog .et_pb_post a.more-link:hover,
.alhs_blogalternate a.more-link:hover {
  color: #f1efea;
  background-color: #9a8b50;
}

/*changing the Divi hamburger menu to X*/
.mobile_nav.opened .mobile_menu_bar:before {
  content: "\4d";
}
/*rotating the Divi Menu icon*/

.mobile_menu_bar:before {
  transition: all 0.4s ease;
  transform: rotate(0deg);
  display: block;
}

/*rotate the Divi Menu icon on click*/

.mobile_nav.opened .mobile_menu_bar::before {
  transition: all 0.4s ease;
  transform: rotate(90deg);
  display: block;
}

/* Remove the top line in the mobile menu*/
.et_mobile_menu {
  border-top: 0;
}

/*making the Divi Menu full width*/
.et_pb_menu .et_mobile_menu {
  min-width: 105vw;
  padding-top: 20% !important;
  margin-left: -4vw;
  padding-bottom: 100vh !important;
}

/*removing the line from the menu items and adding line height*/

.et_mobile_menu li a {
  padding: 10px 10px !important;
  border-bottom: none !important;
}

/*removing padding of the social media icons*/
.et_mobile_menu li li {
  padding-left: 0% !important;
}
