/*
Theme Name:     McTague Law:Divi Child-theme
Theme URI:      
Description:    Divi child theme.
Author:         Arbi Arzoumani
Author URI:     www.arzoumani.com
Template:       Divi
Version:        0.9.1
*/

/** Compass Colors **/
:root {
    --mctl-purple: #8b5699;
    --mctl-primary: #19384F;
    --mctl-secondary: #48536F;

    --common-font-sans: 'Untitled Sans', 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
    --common-font-serif: 'Untitled Serif', 'Source Serif Pro', 'Source Serif', Georgia, serif;
    --common-font-label: 'BrownLLWeb', Helvetica, Arial, Lucida, sans-serif;
}

#page-container :focus {
    outline: 2px dashed #f00 !important;
}

/** GravityForm **/
body.page-template-default .gform-theme.gform_wrapper, body.single .gform-theme.gform_wrapper {
  margin-bottom: 50px;
}

body.page-template-default .gform-theme.gform_wrapper .gform_footer input.gform_button.button[type="submit"], 
body.single .gform-theme.gform_wrapper .gform_footer input.gform_button.button[type="submit"] {
  padding: 10px 30px;
  background-color: var(--mctl-primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}
.container { width: 95%; }

a { color: var(--mctl-purple); }
#main-content h1, #main-content h2, #main-content h3, #main-content h4, #main-content h5, #main-content h6 { color: var(--mctl-primary); }
#main-content h1, #main-content h2 { font-family: var(--common-font-serif); }
#main-content h3, #main-content h4, #main-content h5, #main-content h6 { font-family: var(--common-font-sans);  }


@media (max-width: 768px) {
  body:not(.home) #main-content h1 { font-size: 2rem; }
}

@media (min-width: 798px) and (max-width: 980px) {
  body:not(.home) #main-content h1 { font-size: 2.5rem; }
}

@media (min-width: 980px) {
  body:not(.home) #main-content h1 { font-size: 3rem; }
}

/** Responsive H1-H3 font sizes **/
@media (max-width: 600px) {
  #main-content h1.font-clamp { font-size: 3rem; font-size: clamp(1.5rem, 8vw, 3rem) !important; }
  #main-content h2.font-clamp { font-size: 2rem; font-size: clamp(1.5rem, 8vw, 3rem) !important; }
  #main-content h3.font-clamp { font-size: 1.5rem; font-size: clamp(1rem, 8vw, 2rem) !important; }
}

@media (min-width: 600px) and (max-width: 1024px) {
  #main-content h1.font-clamp { font-size: 3rem; font-size: clamp(2rem, 4vw, 4rem) !important; }
  #main-content h2.font-clamp { font-size: 2rem; font-size: clamp(1.5rem, 3vw, 3rem) !important; }
  #main-content h3.font-clamp { font-size: 1.5rem; font-size: clamp(1rem, 3vw, 2rem) !important; }
}

@media (min-width: 1024px) {
  #main-content h1.font-clamp { font-size: 5rem; font-size: clamp(2rem, 4vw, 4rem) !important; }
  #main-content h2.font-clamp { font-size: 3rem; font-size: clamp(1.5rem, 3vw, 3rem) !important; }
  #main-content h3.font-clamp { font-size: 2rem; font-size: clamp(1rem, 3vw, 2rem) !important; }
}

#top-menu li.current-menu-ancestor > a, #top-menu li.current-menu-item > a { color: var(--mctl-purple); }

#main-content .et_pb_module.et_pb_text a:hover,
#main-content .et_pb_module.et_pb_text .btn-link:hover { text-decoration: underline; }
#main-content p + h2 { padding-top: 2rem; }

table.lawyers { width: 100%; }
table.lawyers thead tr th { padding: 10px; }
table.lawyers .lawyer-image-wrapper { display: inline-block; width: 50px; margin-right: 15px; vertical-align: middle; }
table.lawyers .lawyer-image-wrapper img { display: block; }
table.lawyers tbody tr td { vertical-align: middle; background-color: #EEEEEE; padding: 10px; line-height: 50px; }
table.lawyers tbody tr td.staff-name { width: 40%; height: 50px;}
table.lawyers tbody tr:nth-of-type(2n) td { background-color: #fff; }

/* 
body.has-hero header,
body.home header {
  position: absolute;
  width: 100% !important;
  top: 10px;
}

.hero-page {
    margin-top: -75px !important;
} */

/* body #main-content { margin-top: -80px} */

/** START: Used for links in the Top nav that don't link anywhere **/
.unclickable>a {
    pointer-events: none;
}

#main-content .btn-link {
    background: none;
    color: var(--mctl-purple);
      border: none;
      padding: 0;
      font: inherit;
      cursor: pointer;
      outline: inherit;
  }

  .practice-reveal:before {
    font-family: 'ETMODULES';
    content: '\59';
    font-size: 32px;
    color: var(--mctl-purple);
    margin-right: 7px;
    vertical-align: top;
    display:inline-block
  }

  .practice-reveal.mctl-reveal-active:before {  
  content: '\58';
  }

  ul.mctl-breadcrumb {
    list-style: none;
    padding: 0;
  }
  ul.mctl-breadcrumb li {
    display: inline-block;
  }

  ul.mctl-breadcrumb li::before {
    display: inline-block;
    font-family: 'ETmodules';
    font-weight: normal;
    font-variant: normal;
    font-style: normal;
    font-size: inherit;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
    letter-spacing: 0;
    content: "\35";
    margin-right: 5px;
    speak: none;
  }
  .mctl-breadcrumb > li + li {
    position: relative;
  }

  ul.mctl-breadcrumb li:first-of-type:before {
    content: "\e074";
    color: var(--mctl-purple);
    margin-right: 5px;
  }
  
  #breadcrumb-section { background-color: var(--mctl-primary) !important; z-index: 0;}
  #breadcrumb-section h1, #mctl-breadcrumbs, #mctl-breadcrumbs a, #mctl-breadcrumbs, ul.mctl-breadcrumb li:first-of-type:before { color: #fff; }

  
  #main-content .mctl-reveal-target,
  #main-content .mctl-reveal-target.mctl-reveal-target-visible {
    padding: 10px 0 0 40px;
  }



  /** Form Styles **/
  .mc4wp-form select, 
  .mc4wp-form textarea, 
  .mc4wp-form input:not([type=checkbox]):not([type=radio]) {
    line-height: 20px;
    vertical-align: middle;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    padding: 14px 10px;
    border: 1px solid #f1f1f1;
    color: #979ea1;
    background: #fff;
    border-radius: 0;
    width: 100%;
    display: block;
    background-color: #eee;
  }
  .mc4wp-form input::placeholder {
    color: #979ea1;
    font-weight: bold;
    opacity: 1;
  }
  .mc4wp-form label {
    display: inline-block;
    max-width: 100%;
    font-weight: bold;
    margin-bottom: 5px;
  }
  .mc4wp-form legend {
    margin-bottom: 10px;
  }


  .wp-block-image.alignleft {
    padding-right: 25px;
  }



  /* Grid style */
.display-posts-listing.grid {
	display: grid;
	grid-gap: 60px;
}

body.parent-practices .display-posts-listing.grid {
    grid-gap: 25px;
}

.display-posts-listing.grid .title {
	display: block;
}

/* .display-posts-listing.grid img { 
	display: block; 
	max-width: 100%; 
	height: auto; 
} */

@media (min-width: 600px) {
	.display-posts-listing.grid {
		grid-template-columns: repeat( 3, 1fr );
	}
  
  body.parent-practices .display-posts-listing.grid {
    grid-template-columns: repeat( 2, 1fr );
  }
}

@media (min-width: 1250px) {
	.display-posts-listing.grid {
		grid-template-columns: repeat( 4, 1fr );
	}
}

@media (min-width: 1520px) {
  body.parent-practices .display-posts-listing.grid {
    grid-template-columns: repeat( 3, 1fr );
  }
}

#main-content .lawyer-wrapper { 
  background-color: var(--mctl-secondary);
  max-width: 300px;
}

#main-content .lawyer-wrapper .lawyer-meta-wrapper { 
  padding: 10px 20px 20px 20px;
  color: #fff;
  font-size: .85rem;
  line-height: 120%;
}
#main-content .lawyer-wrapper .lawyer-meta-wrapper h3 {
  color: #fff;
  padding-bottom: 0;
  font-size: 1rem;
  font-weight: bold;
  /* margin-bottom: 1rem; */
}
/* 
body.parent-practices #main-content .lawyer-wrapper .lawyer-meta-wrapper h3 {
  font-size: 1em;
  margin-bottom: 1em;
} */

#main-content .lawyer-wrapper .lawyer-position {
  padding-bottom: 20px;
}

/** Move the last sub-menu in the header to the left to make sure it doesn't get cut-off **/
header .et-menu-nav .menu-item:last-child .sub-menu {
  left: -10vw;
}



.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

#main-content .email {
  color: var(--mctl-purple);
}

#main-content .email:hover {
  cursor: pointer;
  text-decoration: underline;
}

/** START: Square Aspect Ratio image helper **/
.aspect-square img {
  aspect-ratio: 1/1;
      border-radius: 15px;
   object-fit: cover;
    object-position: center;
    height: 100% !important;
}
/** END: Square Aspect Ratio image helper **/
