/*
Theme Name: Prosthetic and Orthotic Designs
Theme URI: https://prostheticandorthoticdesigns.com/
Description: Divi Child Theme
Author: JF Designs
Author URI: https://jfdesigns.com
Template:    Divi
Version:     1.3
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

 /* Fluid clamp-based font sizes */
/* 	Recipe: Rem value: 10px  ||| Base: 16px-18px ||| Screen: 360px > 1280px ||| Ratio: 1.125 > 1.2  1 -1.01 individual ||| Labels: h6,base,h5,h4,h3,h2,h1 */
:root {
--fs-h6: clamp(1.4rem, 0.1vi + 1.4rem, 1.5rem);
--fs-base: clamp(1.6rem, 0.2vi + 1.5rem, 1.8rem);
--fs-h5: clamp(1.8rem, 0.4vi + 1.7rem, 2.2rem);
--fs-h4: clamp(2rem, 0.6vi + 1.8rem, 2.6rem);
--fs-h3: clamp(2.3rem, 0.9vi + 2rem, 3.1rem);
--fs-h2: clamp(2.6rem, 1.3vi + 2.1rem, 3.7rem);
--fs-h1: clamp(2.9rem, 1.7vi + 2.3rem, 4.5rem);
--fs-display: clamp(3.2rem, 2.3vi + 2.4rem, 5.4rem);
}
/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-size:  var(--fs-base);
  line-height:     1.7;
  font-weight:     500;
  font-family:     Inter, Helvetica, Arial, Lucida, sans-serif;
  transition:      all 0.5s ease;
}

/* Reset paragraph spacing */
p {
  margin-top: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.jfd-base-text h1,
.jfd-base-text h2,
.jfd-base-text h3,
.jfd-base-text h4,
.jfd-base-text h5,
.jfd-base-text h6 {
  margin:       0;
}
.jfd-base-text h1.display {
  font-size:  var(--fs-h1) !important;
  line-height: 1.2;
  text-wrap: pretty;
}

.jfd-base-text h1 {
  font-size:  var(--fs-h1) !important;
  line-height: 1.2;
	

}

.jfd-base-text h2, .subhead-lg {
  font-size:  var(--fs-h2) !important;
  line-height: 1.25;
  text-wrap: pretty;

}

.jfd-base-text h3, .subhead-md {
  font-size:  var(--fs-h3) !important;
  line-height: 1.3;
   text-wrap: pretty;

}

.jfd-base-text h4, .subhead-reg {
  font-size:  var(--fs-h4) !important;
  line-height: 1.35;
   text-wrap: pretty;

}

.jfd-base-text h5, .subhead-sm {
  font-size:  var(--fs-h5) !important;
  line-height: 1.5;
  text-wrap: pretty;

}

.jfd-base-text h6, .subhead-x-sm {
  font-size:       var(--fs-h6) !important;
  line-height:     1.6;
   text-wrap: pretty;
  letter-spacing:  0.05em;
  text-transform:  uppercase;
}
.jfd-base-text, .jfd-base-text p {
  font-size:  var(--fs-base);
  line-height:     1.7;
  line-height: 1.7;
}

.jfd-base-text.et_pb_bg_layout_light .et_pb_post p{
	/* blog module grid excerpt font-size */
  font-size:  .85em !important;
  line-height: 1.7;
}

.et_pb_module.copyright{
  font-size:  1.2rem;
  line-height: 1.7;
}

/* Standalone headings */
h1 {
  margin-bottom: 0.125em;
  line-height:   1.25 !important;
}

/* Space before a heading following text or lists */
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6,
ul + h1, ul + h2, ul + h3, ul + h4, ul + h5, ul + h6,
ol + h1, ol + h2, ol + h3, ol + h4, ol + h5, ol + h6 {
  margin-top: 0.75em !important;
}

/* Last-of-type paragraph padding */
p:not(.has-background):last-of-type {
  padding-bottom: 1rem;
}

blockquote > p:not(.has-background):last-of-type {
  padding-bottom: 0 !important;
}

sup {
  bottom:     0.5em;
  font-size:  0.7em;
}

/* ==========================================================================
   Layout & Grid Helpers
   ========================================================================== */
/* Clearfix */
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* Multi-column List layout */
ul.service-list {
    columns: 2 24rem;
    column-gap: 6rem;
}
ul.service-list.sm {
    columns: 2 auto;
    column-gap: 6rem;
	max-width:475px
}
ul.service-list li{
    break-inside: avoid-column;
}
ul.service-list li.filler {
  visibility: hidden;
  height: 4rem; /* Adjust this to control how short the second column appears */
}
@media (max-width: 1079px) {
 ul.service-list li.filler {
 	display:none /* Hide on mobile */
	}
}

/* Multi-column flex layout */
.mutli-col {
  display:         flex;
  flex-wrap:       nowrap;
  column-gap:      6rem;
  justify-content: space-around;
}

.mutli-col ul {
  margin:  0;
  padding: 0;
}

/* RESPONSIVE IMAGE FILLS DIVI COLUMN */

/*ADD jfd-full-height-image-column CLASS TO IMAGE AND SET ROW TO EQUALIZE HEIGHT */

/* ============================================================
   FULL-HEIGHT IMAGE COLUMN (STANDARD IMAGES)
   ============================================================ */
.jfd-full-height-image-column {
  height: 100% !important;
}

.jfd-full-height-image-column .et_pb_image_wrap {
  height: 100%;
}

.jfd-full-height-image-column img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  display: block;
}

/* ============================================================
   MOBILE OVERRIDE FOR MASTHEAD COLUMN REVSER
   ============================================================ */
@media screen and (max-width: 980px) and (orientation: portrait) {
  .masthead-photo-column {
    display: flex;
    flex-direction: column-reverse;
  }
}


/* ==========================================================================
   Components
   ========================================================================== */
/* Links */
a {
  color:      #99220c;
  transition: all 0.5s ease;
}

a:hover {
  color: #db1a00;
}

/* “Read More” button */
a.more-link,
article a.more-link,
.et_pb_post .post-content a.more-link {
  position:       relative;
  display:        inline-block;
  clear:          both;
  text-align:     center;
  padding:        1.2rem 3.6rem;
  color:          #ffffff !important;
  border:         solid 1px #99220c;
  border-radius:  8px;
  /* letter-spacing: 0.05em; */
  font-size:      1.8rem;
  line-height:    1.3rem;
  font-weight:    500 !important;
  text-transform: capitalize;
  background:     var(--button-color-fill);
}

a.more-link:hover,
article a.more-link:hover,
.et_pb_post .post-content a.more-link:hover{
   background: #fff;
  color:          #99220c !important;
  border:         solid 1px #99220c;
}


/* Divi modal sticky menu fix */
.mce-panel .mce-stack-layout-item.mce-first {
  position: sticky !important;
  top:      -6rem;
}

/* Animated underline on hover */
.pod-link-underline a:not(.more-link) {
    position: relative;
    text-decoration: none;
}

.pod-link-underline a:not(.more-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background-color:currentColor;
    transition: width 0.3s ease;
}

.pod-link-underline a:not(.more-link):hover::after {
    width: 100%;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.padding-0,
.no-padding {
  padding: 0 !important;
}

.padding-bottom-0 {
  padding-bottom: 0 !important;
}

/* add space above header * if following list */
 ul + h1, ul + h2, ul + h3, ul + h4, ul + h5, ul + h6, ol + h1, ol + h2, ol + h3, ol + h4, ol + h5, ol + h6 {
     padding-top: .375em !important;
}
/* add space below list items */
 .et_pb_text ul, .et_pb_text ol,
 .et_pb_post_content ul, .et_pb_post_content ol{
     margin-left: 1.5em;
	 list-style-position: outside;
}
 .et_pb_text li,
 .et_pb_post_content li{
     margin-bottom: .75em 
}
 .et_pb_row.col-bot-margin-none .et_pb_column {
     margin-bottom: 0px !important 
}

/* create inline display */
.display-inline-block{
	display:inline-block !important
}



/* ==========================================================================
   Forms & Contact Form 7 Overrides
   ========================================================================== */
/* Remove stubborn Divi pseudo-border */
#main-content .container:before {
  content: none;
}

/* Smart Grid container override */
.cf7sg-container .cf7-smart-grid.has-grid .container {
  display:      block;
  width:        100% !important;
  max-width:    100% !important;
  margin:       0 auto !important;
  padding:      0 !important;
  flex-wrap:    wrap;
}

.cf7sg-container {
  line-height: 1.7 !important;
}

/* CF7 grid columns breakpoints */
@media (max-width: 980px) {
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns {
    float:  none !important;
    width:  100%   !important;
    margin: 0      !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half {
    float:       left !important;
    width:       48.93617% !important;
    margin-left: 2.12766%  !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half:first-child {
    margin-left: 0 !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third {
    float:       left !important;
    width:       31.91489% !important;
    margin-left: 2.12766%  !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third:first-child {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns,
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-half,
  .cf7sg-container .cf7-smart-grid.has-grid form .container .row .columns.one-third {
    float:  none !important;
    width:  100%   !important;
    margin: 0      !important;
  }
  .cf7sg-container .cf7-smart-grid.has-grid .container.spacer-margin-top {
    margin-top: 1.5rem !important;
  }
}

/* Signature field styling */
.wpcf7-form-control-signature-body canvas {
  width:         100%;
  height:        15rem;
  border:        0.1rem solid #e0e0e0;
  border-radius: 0.5rem;
  background:    #eee;
}

.wpcf7-form-control-signature-wrap {
  width:  70%     !important;
  height: 16.5rem !important;
}

@media (max-width: 768px) {
  .wpcf7-form-control-signature-wrap {
    width: 100% !important;
  }
}

/* Other CF7 tweaks */
input[type="button" i] {
  color:          #800 !important;
  border:         0.2rem solid #800;
  font-size:      1.4rem;
  font-weight:    500;
  padding:        0.3em 1em;
  line-height:    1.7em !important;
  background:     transparent;
  border-radius:  0.3rem;
}

input[type="button" i]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.wpcf7-form-control::placeholder {
  color: #333 !important;
}

.wpcf7-response-output {
  display: block;
}

.wpcf7 form.sent .cf7sg-response-output {
  display: none !important;
}

.wpcf7-not-valid-tip {
  font-size:      1rem    !important;
  letter-spacing: 0.5px   !important;
  font-weight:    700     !important;
  display:        block   !important;
  position:       relative!important;
  top:            100%    !important;
  padding-top:    0.3rem  !important;
  line-height:    1.2em   !important;
  z-index:        7777    !important;
  background:     none    !important;
}

.wpcf7-not-valid {
  border: 0.1rem solid red !important;
}

.wpcf7-form.sent div.container {
  display:    none !important;
  transition: all 0.5s ease;
}

.wpcf7 div.wpcf7-response-output {
  font-size:   2.2rem;
  text-align:  center;
}

/* ==========================================================================
   Components: Navigation & Menu
   ========================================================================== */
/* Menu breakpoint */


@media(max-width: 1280px) {
   .pod-navigation-menu-item {
    display:none
  }
   .pod-nav-sidebar {
    display:block
  }
}
@media(min-width: 1281px) {
  .pod-navigation-menu-item-phone, .pod-nav-sidebar{
    display:none
  }
}
@media screen and (min-device-width: 769px) and (max-device-width: 768px) {

}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 890px) {
  .mutli-col,
  .mutli-col-no-wrap {
    flex-direction: column;
    gap:            0;
    justify-content:center;
  }
  .mutli-col-no-wrap {
    flex-direction: row;
    gap:            3rem;
  }
}

@media (max-width: 767px) {
  .et_pb_blog_grid .et_pb_post {
    margin:     3.6rem 0 !important;
    box-shadow: 0 0.9rem 2.8rem -1.5rem rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 768px) {
  .cf7sg-container .cf7-smart-grid.has-grid .container.spacer-margin-top {
    margin-top: 1.5rem !important;
  }
  .wpcf7-form-control-signature-wrap {
    width: 100% !important;
  }
}
/* MAIN NAVIGATION SUBMENS FOR DONDIVI LAYOUTS  */
.dd-submenu ul{
  margin-left:0;
  list-style-type: none;
  padding: 0;
  line-height: 2.5em;
  }
.dd-submenu ul li {
  margin-bottom: 0;

}

/* MOBILE NAVIGATION SIDEBAR SLIDEOUT STYLING */

 /* The section that holds all of the rows */
.dd-nav {
  position: relative;
  overflow: hidden; /* Hide scrollbar */
  height: calc(100vh - env(safe-area-inset-bottom));
}
@media (min-width:767px){
  .dd-nav {
   max-height:800px
 }
}

/* all panels stacked, hidden off right by default */
.dd-panel {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height:100vi;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

/* visible base layer */
.dd-panel.active {
  transform: translateX(0);
  z-index: 5;
}

/* incoming panel slides over top */
.dd-panel.entering {
  transform: translateX(0);
  z-index: 10;
}

/* outgoing panel slides off right */
.dd-panel.exiting {
  transform: translateX(100%);
  z-index: 10;
}
  
.dd-panel ul{
  margin-left:0;
  list-style-type: none;
  padding: 0 0 0px 35px;
  line-height: 30px;
  }
.dd-panel ul li {
  margin-bottom: 0;

}
  
.go-back { 
    display:block;
	padding:10px 0px;
    border-bottom: solid 1px #d15710
}
  
.contact-bottom {
  display: none/* hidden by default */
}

@media (min-width: 360px) and (min-height:500px) {
  .contact-bottom {
    display: block /* show only when viewport width >= 767px */
  }
}



/* FOOTER STYLING */
 .business-info {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: space-around;
      flex: 1 1 100%;
      max-width: 450px;
    }

    .business-info .hours,
    .business-info .address {
      flex: 1 0 auto;
    }

    .business-info .address {
      border-left: 1px solid #fff;
      padding-left: 10px;
    }


/*FAQs Toggles */
/* add box shadow to open toggles */


/* Base: animate both open and close */
.et_pb_toggle.jfd-base-text {
  transition: transform 300ms ease-in-out, box-shadow 300ms ease-in-out;
}
.et_pb_toggle.jfd-base-text.et_pb_toggle_close:hover{
	background: linear-gradient(180deg, rgba(193, 122, 109, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
}

/* Effect only when open */
.et_pb_toggle.jfd-base-text.toggle-elevated {
  box-shadow: 0px -30px 25px -30px rgba(62, 58, 52, 0.3) !important;
  transform: scaleX(1.02) scaleY(1.02) translateX(0px) translateY(-3px);
  will-change: transform, box-shadow;
	background:#fff;
	background: linear-gradient(180deg, rgba(193, 122, 109, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
}

/*ABOUT POD PATIENT GALLERY */
/* arrow styling */

.mfp-arrow-right:after,
.mfp-arrow-left:after{
    border: none;
    font-size: 64px;
    color: #fff;
    background: #000;
}