/*
    Theme Name: TWF Portal Theme 2024
    Description: Custom theme for The Website Factory
    Author: The Website Factory
    Author URI: https://thewebsitefactory.org
    Version: 3.0
 	License: GPL-2.0+
	License URI: http://www.opensource.org/licenses/gpl-license.php
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
  box-sizing: border-box;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}



/*
---------- IDW Utilities ------------------------------------- */

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
  font-family:'Nunito Sans', sans-serif;
  font-size: 1.6rem;
}

img {
width: 100%;
max-width: 100%;
height: auto;
box-sizing: border-box;
}

section, div, aside {
box-sizing:border-box;
}

section, .wrap {
position: relative;
margin:0 auto;
}

.wrap {
width: 100%;
max-width: 1440px;
padding: 0 6rem;
}

.wrap-single-col {
  max-width: 960px;
}

.wrap-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wrap-fullwidth {
width: 100%;
max-width: 100%;
}



figure {
margin: 0;
}

.content .gform_fields li {
padding-left: 0;
}


.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]), textarea {
border: 1px solid #c6c6c6;
padding: 1rem;
}

/* Header & Logo Area
--------------------------------------------*/
.site-header {
  position:relative;
  overflow: visible;
}
header { 
  display: block;
  width: 100%;
  margin: 0;
  height: 200px;
  background: #a7a7a7;
  transition:all 1s ease;
  background:transparent;
  z-index: 2;
  padding:0 60px;
  box-sizing:border-box;
}

header.stuck {
  position: fixed;
  top:0;
  z-index:2;
}


nav { transition:all 1s ease; box-sizing:border-box; }
nav ul { list-style:none; padding:0; }
nav ul { display: flex; }
nav ul li { }
nav ul li a { }
nav ul li a:hover, nav ul li.current-menu-item { }

body.login div#login h1 a {
  background-image: url(https://assets.infinitydentalweb.com/images/twf-portal-login.png?1);
  width: 400px;
  height: 150px;
  background-size: contain;
  position: relative;
  left:50%;
  transform:translateX(-50%);
}





/* Responsoive Nav
------------------------------------- */

.menu-icon {
  display: none;
  position: absolute;
  right: 3rem;
  top: 50%;
  transform:translateY(-50%);
  z-index: 2;
}

.menu-icon .icon {
position: relative;
width: 40px;
height: 29px;
cursor: pointer;
}

.icon .bar {
display: inline-block;
width: 100%;
height: 4px;
background: #222;
border-radius: 2px;
position: absolute;
top: 0;
left: 0;
float: left;
transition: 1s all ease;
}

.icon .bar.first { top:0; }
.icon .bar.middle { top: 50%; width: 100%;}
.icon .bar.last { top: 100%; width: 85%; left:15%; }

.open .bar.first {
top: 50%; transform:rotate(45deg);
}

.open .bar.middle {
opacity:0;
}

.open .bar.last {
top: 50%; left:0; width:100%; transform:rotate(-45deg);
}


.phone-icon {
display: none;
position: absolute;
right: 3rem;
top: 3rem;
}

.phone-icon a {
border: none;
padding: 0;
}


/* Responsive Video 
------------------------------------- */

.video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video iframe, .video-4-3 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-4-3 {
  position: relative;
  padding-bottom: 75%; /* 4:3 */
  height: 0;
}



/* Modal Overlays 
--------------------------------------*/

.idw-modal-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.6);
  top: 0;
  left: 0;
  z-index: 99991;
  display: none;
}

.idw-modal {
  position: fixed;
  width: 1000px;
  max-width: 100%;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99992;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 1em 5em;
  margin: 0!important;
  box-shadow: none;
  display: none;
}

.idw-modal-close {
  position: absolute;
  right: .5em;
  top: 0;
  font-size: 2em;
  cursor: pointer;
}



/* General Slider Styles 
---------------------------------------------------------*/

.owl-stage {
  display: flex;
  align-items: stretch;
  padding: 0;
  text-align:center;
}
.owl-item {
  display: flex;
  flex: 1 0 auto;
  background-color: transparent;
  padding: 0;
}

.item {
  
}

.owl-nav.disabled {
display: none;
}



/* Simple Text Switcher
---------------------------------------------------------------------------------------------------- */

.switcher-content div {
  display:none;
}

.switcher-content div.active {
  display: block;
}


/* Utility
---------------------------------------------------------------------------------------------------- */
html.no-scroll, html.no-scroll body {
margin: 0;
height: 100%;
overflow: scroll;
}

.desktop {
  display: inline-block;
}

.tablet-down, .mobile-only {
  display: none!important;
}

.disabled {
display: none!important;
}

.entry-author {
  display: none;
}



.text-left {
  text-align: left!important;
}

.text-right {
  text-align: right!important;
}

.alignleft {
  float: left;
  margin-right: 2.4rem;
  margin-bottom:3.6rem;
}

.alignright {
  float: right;
  margin-left: 2.4rem;
  margin-bottom:3.6rem;
}

.page-content p:after {
  content:"";
  display: block;
  clear: both;
  float: none;
}

.page-content .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.one-half { width: 100%; max-width:47.5%; }
.one-third { width: 100%; max-width: 30%; }
.one-fourth { width: 100%; max-width:23%; }
.one-sixth { width: 100%; max-width:15%; }
.two-thirds { width: 100%; max-width: 65%; }
.three-fourths { width: 100%; max-width:72%; }

.row-flex {
display: flex;
align-items: space-between;
justify-content: space-between;
}

.flex-row {
display: flex;
align-items: space-between;
justify-content: space-between;
}

.col-2 {
width: 100%;
max-width: 48%;
}

.col-3 {
width: 100%;
max-width: 31%;
margin-bottom: 3rem;
}

.col-4 {
width: 100%;
max-width: 23%;
}

.fwrap {
flex-wrap: wrap;
}

.ai-center {
align-items: center;
}

.jc-start {
justify-content: flex-start;
}

.prev-slide, .next-slide {
width: 34px;
position: relative;
display: inline-block;
border: none;
height: 14px;
margin-right: 1rem;
}

.round {
border-radius: 50%;
}

.bg-gray {
background: #e6e6e6;
}



.prev-slide:hover, .next-slide:hover {
border: none;
}

.prev-slide:after, .next-slide:after {
content: "";
height: 1px;
background-color: #505050;
right: 0;
top: 50%;
width: 27px;
position: absolute;
}

.arrow-prev {
  width: 0; 
  height: 0; 
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent; 
  border-right: 7px solid #505050;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}

.next-slide {
width: 94px;
margin-left: 1rem;
margin-right: 0;
}

.next-slide:after {
left: 0;
width: 87px;
}


.arrow-next {
width: 0; 
height: 0; 
border-top: 7px solid transparent;
border-bottom: 7px solid transparent; 
border-left: 7px solid #505050;
display: block;
position: absolute;
right: 0;
top:0;
}

.services .slidenumber {
width: .6rem;
display: inline-block;
}

/*
---------- MEDIA QUERIES -----------------------*/

/* iPad, tablet Horizontal */
@media screen and (max-width:1319px){
.wrap {
  padding: 0 6rem;
}
}



@media screen and (max-width:1279px){

}



/* Menu breakpont */
@media screen and (max-width:1024px){
  :root {
    --resp-header-height: 160px;
  }


  .wrap {
    padding: 0 4.8rem;
  }

  .nav-primary ul { display: block; }

  .nav-primary .social-menu {
    display: none;
  }

  .from-top {
    top:var(--resp-header-height); 
    position: absolute;
    height: 0;
    width: 100%;
    padding: 0 4rem;
  }
    
  .from-bottom {
    bottom: 0;
    position: fixed;
    height: 0;
    width: 100%;
    padding: 0 4rem;
  }

  .from-left {
    top:var(--resp-header-height);
    height: calc(100vh - var(--resp-header-height));
    width:0;
    left:0;
    padding: 4rem 0;
  }

  .from-right {
    top:var(--header-height);
    height: calc(100vh - var(--resp-header-height)); 
    width:0;
    right: 0;
    padding: 4rem 0;
  }

  .from-top.open {
    height: calc(100vh - var(--resp-header-height));
    padding: 4rem;
  }

  .from-bottom.open {
    height: 100vh;
    padding: 4rem;
    padding-top: 12rem;
  }

  .from-left.open {
    width: 100%;
    padding: 4rem;
  }

  .from-right.open {
    width: 100%;
    padding: 4rem;
  }

  .nav-primary .sub-menu {
      background-color: transparent;
      position: relative;
      top: 1rem;
      width: auto;
      box-shadow: none;
      display: none;
      opacity: 1;
      left: 0;
      width: 300px;
    }

    .menu-item-has-children {
      /* padding-left: 3.6rem; */
    }

    /* .menu-item-has-children::before {
      content: "+";
      position: absolute;
      top: 2.4rem;
      transform: translateY(-50%);
      left: 0;
      color: #222;
      font-size: 22px;
      font-weight: bold;
  }

    .menu-item-has-children.expanded::before {
      content: "-";
    } */

    .expanded .sub-menu {
      display: block;
    }

    .sub-menu li a {
      padding: 1.2rem 0;
      display: block;
      line-height: 1.8rem;
      transition: all .7s ease;
      font-size: 1.4rem;
      text-transform: uppercase;
      font-weight: 700;
      transition: all ease .5s;
    }

}



/* iPad, tablet Vertical */
@media screen and (max-width:1023px){
  .wrap {
    padding: 0 3.6rem;
  }

  .desktop {
      display: none!important;
  }
  
  .tablet-down {
      display: initial!important;
  }

  .page-content .row {
      flex-wrap: wrap;
  }

  .one-half { width: 100%; max-width:48%; }
  .one-third { width: 100%; max-width: 31%; }
  .one-fourth { width: 100%; max-width:48%; }
  .one-sixth { width: 100%; max-width:31%; }
  .two-thirds { width: 100%; max-width: 67%; }
  .three-fourths { width: 100%; max-width:48%; }

  .col-2 {
    width: 100%;
    max-width: 48%;
  }
  
  .col-3 {
    width: 100%;
    max-width: 31%;
  }
  
  .col-4 {
    width: 100%;
    max-width: 48%;
  }

  .alignleft, .alignright {
      width:100%;
      max-width: 48%;
  }

  .container {
    padding:0 4rem;
  }

}



/* Phone vertical */
@media screen and (max-width:767px){
  .wrap {
  padding: 0 2.4rem;
}

  .mobile-only {
      display: block;
  }

  .one-half,.one-third, .one-fourth, .one-sixth, .two-thirdsm .three-fourths  { width:100%; }

  .col-2,.col-3, .col-4 {
    width: 100%;
    max-width: 100%;
  }

  .alignleft, .alignright {
      width:100%;
      max-width: 100%;
      float: none;
      clear: both;
  }

  .container {
    padding:0 2rem;
  }

}