/*
Theme Name: Eastern Oil Company
Theme URI: https://consumerfocusmarketing.com/
Author: Consumer Focus Marketing
Author URI: https://consumerfocusmarketing.com/
Description: Custom WordPress theme for Eastern Oil Company.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eastern-oil
*/

:root {
  --red: #ed1c24;
  --blue: #23527c;
  --black: #0f0f0f;
  --near-black: #141414;
  --dk-gray: #2e2e2e;
  --gray: #333333;
  --md-gray: #dddddd;
  --lt-gray: #eaeaea;
  --off-white: #eeeeee;
  --white: #ffffff;
  --pale-red: #fff1f2;
  --font-body: "Roboto", Arial, sans-serif;
  --font-headline: var(--font-body);
  --image-overlay: rgba(15, 15, 15, 0.64);
  --image-overlay-blue: rgba(35, 82, 124, 0.8);
  --content-width: 1160px;
  --focus-outline: 3px solid var(--blue);
}

/*** Reset And Base ***/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--near-black);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: underline;
}

a:hover {
  color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

.container:not(.main-menu .container) {
  min-width: 95vw;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}

/*** Typography ***/

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  color: var(--near-black);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

hr {
  width: 100%;
  margin: 24px 0;
  border: 0;
  border-top: 2px solid var(--red);
}

/*** Buttons ***/

.btn,
.gform_button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  margin-bottom:5px;
  border: 0;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.gform_button {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover,
.gform_button:hover {
  background: #601c22;
  color: var(--white);
  text-decoration: none;
}

.btn-default {
  background: var(--pale-red);
  color: var(--near-black);
}

.btn-default:hover {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

.btn-dark {
  background: var(--dk-gray);
  color: var(--white);
}

.btn:active,
.gform_button:active {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}

.btn-dark:hover {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}

@media(max-width:767px){
	.btn,
	.gform_button{
		width:100%;
		margin-bottom:10px;
	}
}

/*** Header ***/

.site-header {
  position: relative;
  z-index: 100;
  background: var(--red);
  color: var(--white);
}

.site-header-main {
  display: grid;
  min-height: 100px;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 40px;
}

.site-header .site-header-main.container,
.site-header nav.main-menu > .container {
  width: calc(100% - 48px);
  min-width: 0;
  max-width: 1140px;
  padding-right: 0;
  padding-left: 0;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  display: inline-block;
}

.site-logo img {
  width: 223px;
  max-height: 100px;
  object-fit: contain;
  object-position: left center;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-phone,
.footer-phone {
  color: var(--white);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.header-phone:hover,
.footer-phone:hover {
  color: var(--white);
  text-decoration: underline;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.header-button {
  min-width: 160px;
  min-height: 39px;
  padding: 10px 20px;
  font-size: 14px;
  margin: 0;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-button:first-child {
  min-width: 186px;
}

/*** NAV MENU ***/

/*** NAV BAR ***/

.main-menu {
  background-color: var(--red);
  font-weight: 500;
  padding: 0;
}

.main-menu .navbar-nav {
  justify-content: space-between;
}

.main-menu .navbar-nav > .nav-item {
  flex: 0 1 auto;
  text-decoration: none;
}

.main-menu .navbar-nav .nav-link {
  min-height: 49px;
  padding: 14px 10px;
  font-weight: 700;
  text-transform: none;
  font-size: 1rem;
  line-height: normal;
/*   justify-content: end; */
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 767px) {
  .main-menu .nav-link {
	  font-size: 1.25rem;
  }
	#menu-menu {
		margin-top: 1.5rem;
	}
}

.nav-item {
  margin-bottom: 0;
}

.main-menu .nav-link:hover {
  color: var(--white);
}

.dropdown-item {
  font-weight: 500;
  color: initial;
  color: var(--white) !important;
}

.submenu-two {
  width: 100%;
}

.third-level .dropdown-item {
  white-space: pre-wrap;
  line-height: normal;
}

.nav-link {
  display: flex;
  align-items: center;
}

.nav-link img {
  margin-right: 0.25rem;
}
@media (max-width: 790px) {
  .nav-link img {
    width: 20px;
  }
}

@media (min-width:768px) and (max-width:991px){
	nav.navbar.main-menu .container {
    max-width: 1140px;
	}
}

/*** MENU - BASE STYLES ***/

/* show dropdown menus on hover */
.dropdown:hover > .dropdown-menu {
  display: block;
	
}
.dropdown:hover > .dropdown-menu .dropdown-menu {
border: 1px solid var(--gray);	
}
.dropdown-item {
  text-align: left;
  padding: 0.5rem 1.5rem;
}

/* removes the deadzone click area */
.dropdown-menu {
  margin: 0;
  border: 0;
  border-radius: 0;
  left: auto;
  right: 0;
  margin: 0 auto;
  background: var(--dk-gray);
}

.dropdown-menu .submenu-two {
  width: 100%;
}
.top-level .nav-link:hover {
  color: var(--white);
  text-decoration: underline;
}
.nav-link:hover,
.nav-item:hover {
  color: var(--white);
  text-decoration: underline;
}

.nav-item.active > a {
  text-decoration: none;
  color: var(--white);
}

.dropdown-item:hover {
  background-color: var(--red);
  color: var(--white);
  text-decoration: underline;
}

.navbar-toggler {

}

/* hides carets */
.dropdown-toggle::after {
  display: none;
}

/*** MENU - TOP LEVEL ***/

/*** MENU - THIRD LEVEL MENU DROPDOWNS ***/

.second-level {
  position: relative;
}

.second-level > .dropdown-menu {
  top: 0;
  left: 100%;
}

@media (min-width: 768px) {
  .second-level > .dropdown-menu {
    margin-top: -0.5rem;
  }

  .second-level.menu-item-has-children > a:after {
    display: block;
    content: "▸";
    float: right;
    margin-right: -20px;
  }

  .second-level:hover > a:after {
    border-left-color: inherit;
  }

  .menu-item-has-children > .dropdown-item {
    padding: 0.5rem 2.25rem 0.5rem 1.5rem;
  }
}
@media (max-width: 767.9px) {
  .third-level .dropdown-item {
    padding-left: 40px;
    font-size: 1.2rem;
  }

  .second-level.menu-item-has-children .dropdown-item::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.5em solid;
    border-right: 0.5em solid transparent;
    border-bottom: 0;
    border-left: 0.5em solid transparent;
  }

  .third-level a.dropdown-item::after {
    display: none !important;
  }

  .third-level .dropdown-item:before {
    position: absolute;
    content: "»";
    left: 0;
    margin-left: 1rem;
  }

  .third-level .dropdown-item {
    padding-left: 2rem;
    margin-left: 0.5rem;
  }
  .third-level .dropdown-menu .nav-item {
    padding-bottom: 0;
  }

  .dropdown-item:not(.third-level .dropdown-item) {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .third-level .dropdown-item:before {
    position: absolute;
    content: "»";
    left: 0;
    margin-left: 2rem;
  }

  .submenu-two .dropdown-item {
    padding-left: 2rem;
    margin-left: 1rem;
    font-size: 1.5rem;
  }

  .submenu-two .dropdown-menu .nav-item {
    padding-bottom: 0;
  }

  .top-level.nav-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid;
    padding-bottom: 1rem;
  }

  .nav-link {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .dropdown-toggle:after {
    margin-left: auto;
    margin-right: 1.5rem;
    border-top: 0.5em solid;
    border-right: 0.5em solid transparent;
    border-bottom: 0;
    border-left: 0.5em solid transparent;
  }
}
.main-menu .navbar-nav > .nav-item:hover > .nav-link,
.main-menu .navbar-nav > .nav-item:focus-within > .nav-link,
.main-menu .navbar-nav > .active > .nav-link,
.main-menu .navbar-nav > .current-menu-item > .nav-link,
.main-menu .navbar-nav > .current-menu-parent > .nav-link,
.main-menu .navbar-nav > .current-menu-ancestor > .nav-link {
  background: var(--white);
  color: var(--red);
  text-decoration: none;
}
.main-menu .dropdown-item:hover { background: var(--near-black); }
.main-menu .navbar-toggler { margin: 0 auto; padding: 0; border: 0; background: transparent; }
.main-menu .navbar-toggler-icon { width: 32px; height: 26px; background-image: url("./img/hamburger-menu.svg") !important; }

/*** Homepage ***/

.home-hero {
  width: 100%;
  overflow: hidden;
  background: var(--gray);
}

.home-hero-image {
  width: 100%;
  height: 338px;
  object-fit: cover;
  object-position: center center;
}

.home-introduction {
  padding: 42px 0 48px;
  text-align: center;
}

.home-introduction h2 {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 900;
}

.home-introduction p:last-child {
  margin-bottom: 0;
}

.home-services {
  padding: 42px 0;
  background: var(--off-white);
}

.home-services .container.home-service-grid {
  width: calc(100% - 48px);
  min-width: 0;
  max-width: 1160px;
  padding: 0;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.home-service-card {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  align-items: center;
  padding: 24px 40px;
  border: 2px solid var(--gray);
  border-radius: 8px;
  background: var(--off-white);
  text-align: center;
}

.home-service-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
}

.home-service-icon img {
  width: 90px;
  height: 90px;
}

.home-service-card h2 {
  color: var(--red);
  font-size: 25px;
  font-weight: 900;
}

.home-service-content {
  flex: 1;
  margin: 8px 0 20px;
  text-align: center;
}

.home-service-content p:last-child {
  margin-bottom: 0;
}

.home-service-card .btn {
  min-width: 200px;
}

/*** PAGES ***/

.page-title {
  padding: 3.75rem 0 1rem;
}

.page-title h1 {
  line-height: normal;
  margin: 0;
}

.page-title.bkg-color {
  background: var(--white);
}

.page-title.bkg-img {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: 6.75%;
  padding-bottom: 6.75%;
  position: relative;
  margin-bottom: 2rem;
}

.page-title.bkg-img::before {
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--image-overlay);
}

.page-title.bkg-img .container { position: relative; z-index: 1; }
.page-title.bkg-img h1 { color: var(--white); }

.entry-content { padding-bottom: 3rem; }

/*** ACCORDIONS ***/
.accordion {
  margin: 2.75rem 0;
}

/* Accordion Group */
.accordion-group {
  margin-top: 1.875rem;
  overflow: hidden;
  background-color: var(--pale-red);
  transition: background-color 0.3s ease;
}

/* Panel Title */
.panel-title {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem 0.5rem;
  font-family: var(--font-headline);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Panel Title Text */
.panel-title h3 {
  margin: 0;
	font-size:1.3rem;
}

/* Panel Content */
.panel-content {
  padding: 0.85rem 1.25rem 1.25rem;
}

/* Plus/Minus Icon */
.panel-title::after,
.panel-title.collapsed::after {
  content: "-";
  background-color: var(--red);
  color: var(--white);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  line-height: normal;
  padding-bottom: 0.15rem;
	flex: none;
	margin-left: 1rem;
}

.panel-title.collapsed::after {
  content: "+";
}

/**** TABLES ****/

table {
  width: 100%;
  margin: 0 0 1rem;
  font-size: 1rem;
}

th {
  font-size: 1.125rem;
  background: var(--pale-red);
  font-weight: 600;
  color: var(--near-black);
  text-align: center;
}

td,
th {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray);
}

thead {
  color: var(--near-black);
  border: 1px solid var(--gray);
  text-align: left;
}

tr:nth-child(even) {
  background: var(--pale-red);
}

/*** LISTS ***/

ul.alt li {
  position: relative;
  list-style: none;
}

ul.alt li::before {
  content: "\2713";
  display: inline-block;
  line-height: 1.1rem;
  text-align: center;
  color: var(--near-black);
  background: var(--pale-red);
  border-radius: 50%;
  height: 1rem;
  width: 1rem;
  font-size: 0.75rem;
  position: absolute;
  left: -1.5rem;
  top: 6px;
}

li {
  margin-bottom: 0.563rem;
}

ol.alt {
  counter-reset: orderedList;
}

ol.alt li {
  list-style-type: none;
  position: relative;
}

ol.alt li::before {
  counter-increment: orderedList;
  content: counter(orderedList);
  display: inline-block;
  line-height: 1rem;
  text-align: center;
  color: var(--near-black);
  background: var(--pale-red);
  border-radius: 50%;
  height: 1rem;
  width: 1rem;
  font-size: 0.75rem;
  position: absolute;
  left: -1.5rem;
  top: 6px;
}
.serviceArea {
    columns: 4;
    font-size: .85rem;
  }
.serviceArea li{
	margin:0;
}

@media (max-width: 768px) {
  ul.alt li::before,
  ol.alt li::before {
    line-height: 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    font-size: 1rem;
    left: -2.25rem;
  }

  ul.alt li,
  ol.alt li {
    line-height: normal;
  }
  .serviceArea {
    columns: 2;
    font-size: 1rem;
  }
  .serviceArea li {
    margin-bottom: 0.25rem;
  }
}

blockquote {
  background-color: var(--pale-red);
  border-left: 10px solid var(--red);
  padding: 1.625rem 1.813rem 2.063rem 2.563rem;
  margin: 1rem auto 1rem;
  text-align: left;
  color: var(--near-black);
  font-size: 1rem;
}

blockquote strong {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 700;
}

blockquote p {
  margin: 0;
}

@media(min-width:992px){
	.twocol{
		column-count:2;
		font-size: .9rem;
	}
	.twocol li {
    margin: 0;
	}
}

/*** TOP LEVEL BOXES ***/

.full-height {
  display: flex;
  flex-direction: column;
}

.box-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-bottom: 3rem;
  overflow: hidden;
  background-color: var(--pale-red);
}

.box-content {
  flex-grow: 1;
  overflow: hidden;
  padding: 0 2rem 1rem;
}

.box-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 230px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.box-wrapper h2 {
  font-size: 1.875rem;
  width: 100%;
  margin-bottom: 0;
  padding: 1.25rem 2rem 0.5rem;
}

/* WELLS */

.well {
  padding: 2rem 2rem 2.5rem;
  margin-bottom: 3rem;
}

.well .btn {
  margin-bottom: 0;
}

.well a {
  overflow-wrap: anywhere;
}

.well-default {
  color: var(--near-black);
  background-color: var(--pale-red);
}

.well-default h2,
.well-default h3 {
  color: var(--near-black);
}

.well-default a {
  color: var(--near-black);
  text-decoration: none;
}

.well-default a:hover {
  color: var(--near-black);
  text-decoration: underline;
}

.well-alt {
  background: var(--black);
  color: var(--white);
}

.well-alt h2,
.well-alt h3 {
  color: var(--white);
}

.well-alt a {
  color: var(--white);
}
.well-alt a:hover {
  text-decoration: underline;
}
.well.well-alt img{
	max-width: 200px;
	margin: 5px auto;
}
.well .social img {
    width: 30px;
}

@media (max-width:1100px) and (min-width:768px){
	.well.well-alt img {
    max-width: 130px;
	}
}

/** COUPONS **/
.coupon {
  border: 8px dotted var(--gray);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

.coupon .btn {
  margin-right: 0;
}

/* CALLOUTS */

.callout {
  margin-bottom: 3rem;
}

.callout .btn {
  margin-bottom: 0;
}

.callout-full {
  text-align: center;
}
.callout-full.img-visible,
.callout-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}
.callout-full.img-visible, .callout-full.img-visible h2  {
  color: var(--white);
}
.callout-full.img-visible a  {
  color: var(--white);
}

@media (max-width: 767px) {
  .callout-image {
    min-height: 150px;
    flex-basis: 100%;
    max-width: 100% !important;
    width: 100%;
  }
}
.callout-full.img-visible:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--image-overlay);
}
.full-callout-blue.callout-full.img-visible:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--image-overlay-blue);
}

.callout-full.img-visible .callout-content {
  padding: 3rem;
  text-align: center;
  font-size: 1.125rem;
}

.callout:not(.callout-full.img-visible, .callout-full.img-none)
  .callout-content {
  background: var(--lt-gray);
  padding: 2rem 2rem 2.5rem;
}

@media (max-width: 767px) {
  .callout .callout-content {
    flex: 0 0 100%;
  }
}

.check-list,
.number-list {
  padding-left: 0;
  list-style: none;
  counter-reset: element-list;
}

.check-list li,
.number-list li {
  position: relative;
  min-height: 24px;
  padding-left: 28px;
  margin-bottom: 6px;
}

.check-list li::before,
.number-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.check-list li::before {
  content: "✓";
}

.number-list li {
  counter-increment: element-list;
}

.number-list li::before {
  content: counter(element-list);
}
@media(min-width:992px){
	.threecol{
		column-count:3;
	}
	.twocol{
		column-count:2;
	}
}

/*** BLOG - SIDEBAR ***/

.blog-sidebar {
  background-color: var(--pale-red);
  padding: 2rem;
  color: var(--near-black);
}

.blog-sidebar h3 {
  color: var(--near-black);
}

.blog-sidebar a:not(.blog-btn) {
  color: var(--near-black);
}

.blog-sidebar .blog-btn:hover {
  border-color: var(--near-black);
  background: var(--pale-red);
}

.blog-sidebar a:hover {
  color: var(--near-black);
}

.post-content aside .btn-primary {
  display: block;
  margin-top: 2rem;
}

.post-content aside .btn-primary:hover {
  color: var(--near-black);
}

.blog-title {
  transition-property: background-color, border-color, box-shadow, color,
    opacity, text-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: linear;
}

.blog-title.bkg-img:hover::before,
.blog-title.bkg-color:hover {
  background: rgba(39, 37, 96, 0.6);
}

.blog-sidebar h3 {
  font-size: x-large;
  margin-bottom: 1rem;
  border-bottom: 1px solid;
  padding-bottom: 0.5rem;
}

.post-links,
.category-links {
  padding-left: 1em;
}

.sidebar-links li {
  line-height: normal;
}

.blog-btn {
  font-size: medium;
  padding: 0.5rem;
}

/*** BLOG - POSTS ***/

.post-image {
  height: 250px;
}

.post-meta:not(article .post-meta) {
  font-size: 85%;
  font-style: italic;
  margin-bottom: 3rem;
  line-height: normal;
}
.blog-post {
    background: var(--off-white);
    padding: 1rem;
}
/*** BLOG - INDEX ***/

.blog-article {
  margin-bottom: 3rem;
}

.blog-content {
  background: var(--pale-red);
}

.blog-article .blog-link {
  text-decoration: underline;
  font-weight: 700;
}

.blog-article .blog-link:hover {
  text-decoration: none;
  color: var(--near-black);
}

.blog-content {
  padding: 2.313rem;
  background: var(--pale-red);
}

article h2 {
  font-size: 1.875rem;
}

article .post-link {
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--near-black);
  padding: 0.5rem 0;
  display: block;
}

article .post-link:hover {
  color: var(--near-black);
}

article .post-meta {
  font-size: small;
  font-style: italic;
}

aside {
  background: var(--pale-red);
}

aside ul {
  padding-left: 1rem;
  line-height: normal;
}

li.categories {
  list-style: none;
}

.categories h3 {
  padding-bottom: 0.5rem;
}

aside .well {
  margin-bottom: 0;
}

li.cat-item {
  font-weight: 700;
}

/*** BLOG -- HOME ***/

.blog-home .blog-content a {
  text-decoration: underline;
}

.blog-home .blog-content a:hover {
  text-decoration: unset;
}

.blog-home .blog-content p:first-of-type {
  margin: 0;
}

/*** MODAL ***/

.vertical-alignment-helper {
  display: table;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.vertical-align-center {
  display: table-cell;
  vertical-align: middle;
  pointer-events: none;
}
.modal-content {
  width: inherit;
  max-width: inherit;
  height: inherit;
  margin: 0 auto;
  pointer-events: all;
}

/*** EXTERNAL LINKS ***/

a[target="_blank"]:has(> img):after, a[target="_blank"]:has(> svg):after,footer a[href^="https://consumerfocusmarketing.com"]:after
{
  display: none;
}

a[target="_blank"]::after {
  content: "";
  width: 11px;
  height: 11px;
  margin-left: 4px;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 16 16'><path stroke-width='5' fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/><path stroke-width='5' fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/></svg>")
    center/cover;
  display: inline-block;
  background: currentColor;
}

/*MISC*/
.social img {
    filter: invert(1);
    height: 55px;
	margin:0 .75rem;
}

/* FORMS */
.gform_wrapper {
    background: var(--pale-red);
    padding: 2rem;
}

/*** Footer ***/

.site-footer {
  padding: 48px 0;
  background: var(--dk-gray);
  color: var(--white);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.footer-address {
  display: flex;
  flex-direction: column;
}

.footer-address strong {
  font-weight: 400;
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  margin: 16px 0 0;
  font-size: 14px;
}

.footer-contact a {
  color: var(--white);
}

/*** Tablet ***/

@media (max-width: 900px) {
.home-hero-image {
    height: 270px;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .home-service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }

}

@media (min-width: 768px) and (max-width: 991px) {
  .site-header-main {
    display: flex;
    min-height: 70px;
    justify-content: space-between;
    gap: 12px;
  }

  .site-logo img {
    width: 156px;
    max-height: 70px;
  }

  .header-contact {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .header-phone {
    font-size: 24px;
    white-space: nowrap;
  }
}

/*** Mobile ***/

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 21px;
  }

  .site-header-main {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 21px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-logo img {
    width: 156px;
    max-height: 70px;
    object-position: center;
  }

  .header-contact {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .header-phone {
    font-size: 24px;
  }

  .header-buttons {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .header-button {
    width: 100%;
    min-height: 39px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .main-menu {
    padding: 20px 0;
  }

  .main-menu .navbar-nav > .nav-item {
    flex: 0 0 100%;
  }

.home-hero-image {
    height: 190px;
  }

  .home-introduction {
    padding: 34px 0;
  }

  .home-introduction h2 {
    margin-bottom: 18px;
    font-size: 29px;
  }

  .home-services {
    padding: 30px 0;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card,
  .home-service-card:last-child:nth-child(odd) {
    width: 100%;
    min-height: 0;
    padding: 30px 24px;
  }

  .home-service-content {
    width: 100%;
  }

  .home-service-card .btn {
    width: 100%;
  }

  .page-title {
    padding-top: 28px;
  }

  .footer-layout{
    grid-template-columns: 1fr;
  }

  .well {
    padding: 30px 24px;
  }

  .well .btn {
    width: 100%;
    margin-right: 0;
  }

  .coupon {
    padding: 26px 20px;
  }

  th,
  td {
    padding: 7px 6px;
    font-size: 13px;
  }

  .site-footer {
    padding: 28px 0;
  }

  .footer-layout {
    gap: 24px;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-phone {
    font-size: 28px;
  }
}
