/*
 Theme Name:   HiFu
 Description:  Custom child theme
 Author:       Jill Caren
 Author URI:   https://2dogs.media
 Template:     generatepress
 Version:      1
*/

.footerform {margin-top:-50px}
.nobottommargin {margin-bottom:0}
.entry-content p a {font-weight:bold;text-decoration:underline}


/*==== NAVIGATION and LOGO ====*/
.site-branding-container {
  display: block;
  text-align: center;
  color:#fff;
}
.site-branding-container .site-description {
    font-size:14px;
    position:relative;
    left:25px;
    top:-25px
}

/*----sticky nav-----*/
.navigation-branding {
    display:block !important;
}
.navigation-branding .sticky-navigation-title {
    color:#9b917d;
    display:block !important;
    position:relative;
    left:30px;
    top:-25px;
    font-size:12px
}
.main-navigation:not(.is_stuck) .sticky-navigation-title  {
	display: none !important;
}

/*==== GRAVITY FORM ====*/
.gform_button {
  background:#9c7f46 !important;
  font-size:18px !important;
  border-radius:0 !important;
}
.gform_button:hover {
  background:#371702 !important;
}
.gfield_required {
    display:none !important
}


/*==== VIDEO BLOCK ====*/
.video-bg-container {
  position: relative;
  overflow: hidden !important;
}

.video-bg-container .wp-block-video,
.video-bg-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  pointer-events: none; /* Disables clicking/scrolling */
}


/*==== NAVIGATION ====*/
.main-navigation.navigation-stick,
.main-navigation.navigation-stick ul ul {
    background-color: #fff;
}

.main-navigation.navigation-stick .main-nav ul li a,
.navigation-stick .menu-toggle {
    color: #333;
}

.main-navigation.navigation-stick .main-nav ul li:hover>a,
.main-navigation.navigation-stick .main-nav ul li:focus>a,
.main-navigation.navigation-stick .main-nav ul li.sfHover>a,
.main-navigation.navigation-stick .main-nav ul li[class*="current-menu-"]>a {
    background-color: #fff;
    color: #9b917d;
    text-decoration:underline
}

/*==== HOME PAGE ====*/
/*----- header -----*/
.page-id-2 .background-video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: .7;
}

.page-id-2 .background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-id-2 .page-hero {
    position: relative;
    overflow: hidden;
    height:auto;
    padding-top:300px;
    padding-bottom:50px;
    z-index:0
}

.page-id-2 .inner {
    position:relative;
    z-index:100 !important;
    color: rgb (255,255,255,  1) !important;
}

/*===== SINGLE PAGE =======*/
/*---- page header ----*/
.page-hero{
  height:400px;
  background-position: center center;
}
.page-hero .inner {
  color:#fff;
  font-size:20px;
  max-width:1280;
  padding:10px 40px;
}
.page-hero hr {
  background-color: rgba(222, 207, 177,.6);
  border: 0;
  width:5rem;
  height: 5px;
  margin-bottom: 10px;
  margin-top: 0;
}

/*========= FEATURED CHILD PAGES TREATMENTS + CONCERNS ========*/
.page-template-child-page-list .site-content {
    display:block
}
.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding:40px
     }       
.child-page-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }       
.child-page-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
    }      
.child-page-link {
     display: block;
     width: 100%;
     height: 100%;
     text-decoration: none;
     position: relative;
     }       
.child-page-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    }       
.child-page-item:hover .child-page-background {
     transform: scale(1.05);
      }       
.child-page-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
     padding: 20px;
     transition: background 0.3s ease;
     }   
.child-page-item:hover .child-page-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
    }    
.child-page-title {
    color: #ffffff;
    font-size: 22px;
    margin: 0;
  }

/*========= NUMBER COUNTER BLOCKS ========*/
.counter-block.counted {
  text-align: center;
  padding: 40px 20px;
  min-height: 250px; /* Adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f4f2ec;
  margin-bottom:20px  
}
.counter-number {
  font-size: 72px;
  font-weight: 700;
  color:#9b917d !important;;
  line-height: 1.2;
  margin-bottom: 16px;
}
.counter-text {
  font-size: 18px;
  color: var(--contrast-2, #666);
}
        
       
/*========= TREATMENTS CONCERN LINK BLOCK ========*/
.treatments-block {
    margin: 2rem 0;
    padding: 20px 0
}
.treatments-block h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align:center
}
.treatments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width:800px;
    margin:auto
}

.treatment-item {
    width: 100%;
}
.treatment-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.treatment-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.treatment-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}
.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.treatment-content {
    flex: 1;
}
.treatment-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight:bold
}
.treatment-description {
    margin: 0;
    line-height: 1.4;
    font-size:16px
}


/*======== GALLERY CAPTION BELOW IMAGE STYLING ========*/
/* Override the absolute positioning */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* Remove the blur overlay effect */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
    display: none !important;
}

/* Remove the gradient background from caption since it's no longer overlaying */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: #371702 !important;
    color: #fff !important; /* Change to dark text since no longer on image */
    text-shadow: none !important;
    padding: .5em !important;
    text-align: left !important;
    font-size:16px;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{
    text-decoration:underline;
    font-weight:bold
}

/* Fix the image height issue */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
    height: auto !important;
}



.casestudy-block {
    margin: 40px 0;
}

.casestudy-block h2 {
    text-align: center;
    margin-bottom: 40px;
}

.case-studies {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.casestudy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.casestudy-link {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
}

.casestudy-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
}

.casestudy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.casestudy-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.casestudy-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.casestudy-description {
    margin-bottom: 0;
    line-height: 1.6;
    color: #666;
}

/*======= FOOTER =======*/
.sticky-footer {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
}


/*========= RESPONSIVE ==========*/
@media (max-width: 768px) {
	 .treatment-link {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .treatment-image {
        width: 80px;
        height: 80px;
    }
    
    .treatment-title {
        font-size: 1.25rem;
    }


    .casestudy-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .casestudy-image {
        flex: 0 0 150px;
        width: 150px;
        height: 150px;
    }
    
    .casestudy-content {
        align-items: center;
    }

/*--- home page ---*/
	.page-id-2 .page-hero {
        padding-top: 250px; 
        padding-bottom: 0;
    }
    
    .page-id-2 .background-video video {
        object-fit: cover; 
        object-position: center; 
    }
	
/*--- header mobile ---*/
	.site-header .header-image {
		width:170px;
		margin-top:15px
	}
	.site-branding-container .site-description {
    top: -20px;
	}
	.site-header .menu-toggle svg {
		font-size:28px
	}
	 .page-hero h1{
        font-size:32px
    }
    .page-hero .inner {
        padding:10px 20px;
		font-size:16px
    }
}

@media (max-width: 480px) {
    .casestudy-image {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
    }
    
    .casestudy-title {
        font-size: 20px;
    }
