/*!
Theme Name: Budget Tire Company
Theme URI: http://mcmdigital.com
Author: Michael Chino Maloney
Author URI: http://mcmdigital.com
Description: Budget Tire Company Theme
Version: 1.0.0
Text Domain: budgettireco
*/

nav, header, footer, main, aside, section {display: block;}


html {font-size: 14px; font-family: Arial, sans-serif; line-height: 1.5em;}
body {background: #111;}

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

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

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

br {clear: both; display: block; line-height: 4rem;}

hr.wp-block-separator {
    width: 10rem; 
    border-bottom: solid .2rem #8e0d0d;
    margin: 3rem auto;
}

p {line-height: 1.5em;}

h1, h2, h3, h4 {font-family: 'Chivo Bold', Arial, sans-serif; margin: 0;}

h1 {font-size: 2.5rem; line-height: 4rem;}

body.home h1 {text-align: center;}

body.home h1:after {
    content: "";
    display: block;
    margin: 0 auto 1.5rem auto;
    padding-top: 1rem;
    width: 10rem;
    border-bottom: solid .2rem #8e0d0d;
}

h2 {font-size: 2rem; line-height: 3rem;}

h3 {font-size: 1.5rem; line-height: 2em;}

iframe {display: block;}

select, input, textarea {padding: 1rem; font-size: 1rem; font-family: Arial, sans-serif;}

input, textarea {width: 100%;}

textarea {resize: vertical;}

.wrapper {max-width: 100rem; margin: auto;}
.wrapper-small {max-width: 100rem; margin: auto;}


.has-2-columns .wp-block-column {margin: 0;}

.has-3-columns .wp-block-column {margin: 0;}

.grid-three-col {
    display: grid; 
    grid-gap: 2rem; 
    grid-auto-columns: auto;
    grid-template-columns: none;
}
    
.nested {
    display: grid;
    grid-gap: 2rem;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
}

#top-menu {
    width: 100%;
    height: auto;
    background: #fff;
    padding: 1rem;
}

#top-menu .wrapper {max-width: 70rem;}

a.logo {
    width: 175px; 
    height: 46px; 
    background: url(https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/logo-small.png);
    background: -webkit-image-set( url('https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/logo-small.png') 1x, url(https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/logo-small2x.png) 2x); 
    display: block; 
    float: left;
    margin: .3rem 0 0 0;
}

a.logo-footer {
    width: 213px;
    height: 27px;
    background: url(https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/footer-logo.png);
    background: -webkit-image-set( url('https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/footer-logo.png') 1x, url(images/footer-logo2x.png) 2x); 
    display: block;
    margin: 0 auto 1rem auto;
}

ul#desktop-nav {display: none;}

.hamburger {
    padding: 15px 15px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible; 
    float: right;
    outline: none;
}

.hamburger:hover {
    opacity: 0.7; 
}

.hamburger-box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative; 
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px; 
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #000;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease; 
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block; 
}

.hamburger-inner::before {
    top: -10px; }

.hamburger-inner::after {
    bottom: -10px; }

.hamburger--3dxy .hamburger-box {perspective: 80px;}

.hamburger--3dxy .hamburger-inner {
      transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0s 0.1s cubic-bezier(0.645, 0.045, 0.355, 1); 
}

.hamburger--3dxy .hamburger-inner::before, .hamburger--3dxy .hamburger-inner::after {
    transition: transform 0s 0.1s cubic-bezier(0.645, 0.045, 0.355, 1); 
}

.hamburger--3dxy.is-active .hamburger-inner {
      background-color: transparent;
      transform: rotateX(180deg) rotateY(180deg); 
}

.hamburger--3dxy.is-active .hamburger-inner::before {
    transform: translate3d(0, 10px, 0) rotate(45deg); 
}

.hamburger--3dxy.is-active .hamburger-inner::after {
    transform: translate3d(0, -10px, 0) rotate(-45deg); 
}

ul#mobile-nav {list-style: none; display: none; position: relative; padding: 0; margin: 0; min-height: calc(100vh - 6rem);}

ul#mobile-nav li {display: block; text-align: center; text-transform: uppercase; font-size: 1rem; border-bottom: solid 1px #eee;}

ul#mobile-nav li:hover {cursor: pointer;}

ul#mobile-nav li:last-child {border-bottom: none;}

ul#mobile-nav li li:last-child {margin-bottom: 0;}

ul#mobile-nav li a, ul#mobile-nav li a:visited {display: block; padding: 1.5rem; text-decoration: none; color: #222; font-weight: bold;}

ul#mobile-nav li ul {display: none; padding: 0 1rem 1rem 1rem;}

ul#mobile-nav li ul li {margin: 1rem 0 0 0;}

ul#mobile-nav li ul li:first-child {margin: 0;}

ul#mobile-nav li ul li a, ul#mobile-nav li ul li a:visited {background: #b51313; padding: 1rem; color: #fff;}

body > header {background: #222; overflow: hidden; padding: 2rem;}

body > header > .wrapper {max-width: 70rem;}

body > header h1 {color: #fff;}

body > header#front-page {padding: 0;}

body > header#front-page a img {width: 100%; max-width: 1920px; height: auto; display: block; margin: auto;}

body > main {
    margin: auto;
    padding: .5rem;
    overflow-x: hidden;
    background: #eee;
}

body > footer {
    background: #111;
    color: #999;
    padding: .5rem;
}

body > footer h3 {color: #fff; margin: 0 0 .5rem 0; font-size: 1rem; line-height: 1.5rem;}

body > footer li {list-style-type: none; display: block; margin: 0; padding: 0;}

body > footer li ul {padding: 0; margin: 0;}

body > footer li ul li {line-height: 1.5rem;}

body > footer a, body > footer a:visited {color: #999; text-decoration: none;}

body > footer a:hover {color: #fff;}

body > footer span.small {font-size: .8rem; text-align: center; display: block;}

body > footer > .wrapper {max-width: 30rem;}

body > section {padding: .5rem;}

section#tire-logos {
    background: #fff;
    text-align: center;
}

section#tire-logos img {
    margin: .5rem 0;
}

a.button {display: inline-block; padding: 1.5rem; margin: .5rem; border: solid .3rem #111; text-decoration: none; text-transform: uppercase; font-family: 'Chivo Bold', Arial, sans-serif; font-weight: bold; font-size: 1.5rem; color: #111; transition: ease .25s;}

a.button:hover {
    border: solid .3rem #b51313;
    background: #b51313;
    color: #fff;
}

a.button-solid {display: inline-block; padding: 1.5rem; margin: .5rem; border: solid .3rem #b51313; background: #b51313; text-decoration: none; text-transform: uppercase; font-family: 'Chivo Bold', Arial, sans-serif; font-weight: bold; font-size: 1.5rem; color: #fff; transition: ease .25s;}

a.button-solid:hover {
    border: solid .3rem #111;
    background: #111;
    color: #fff;
}

a.button-solid-green {display: inline-block; padding: 1.5rem; margin: .5rem; border: solid .3rem #58b513; background: #58b513; text-decoration: none; text-transform: uppercase; font-family: 'Chivo Bold', Arial, sans-serif; font-weight: bold; font-size: 1.5rem; color: #fff; transition: ease .25s;}

a.button-solid-green:hover {
    border: solid .3rem #111;
    background: #111;
    color: #fff;
}


/* Shop Locations Styles */
.shop-locations {
    display: grid; 
    grid-auto-columns: auto;
    grid-template-columns: none;
}

.shop-locations > .col1 {padding: 2rem; background: #fff;}

.page-template-page-locations select {margin-bottom: 2rem;}

/* Front Page Styles */
.featured-tires {
    display: block;
    background-image: url(images/hankook-featured.jpg);
    background-position: center center;
    background-size: cover;
    font-family: 'Chivo Bold', Arial, sans-serif;
    font-size: 2.75rem;
    height: 25rem;
    text-align: center;
    text-transform: uppercase;
    transition: all ease .25s;
    overflow: hidden;
}

.featured-wheels {
    display: block;
    background-image: url(images/wheel.jpg);
    background-position: center center;
    background-size: cover;
    font-family: 'Chivo Bold', Arial, sans-serif;
    font-size: 2.75rem;
    height: 25rem;
    text-align: center;
    text-transform: uppercase;
    transition: all ease .25s;
    overflow: hidden;
}

.featured-services {
    display: block;
    background-image: url(images/service.jpg);
    background-position: center center;
    background-size: cover;
    font-family: 'Chivo Bold', Arial, sans-serif;
    font-size: 2.75rem;
    height: 25rem;
    text-align: center;
    text-transform: uppercase;
    transition: all ease .25s;
    overflow: hidden;
}

.featured-services:hover, .featured-wheels:hover, .featured-tires:hover {
    font-size: 3rem;
}

.featured-services a, .featured-services a:visited, .featured-tires a, .featured-tires a:visited, .featured-wheels a, .featured-wheels a:visited {
    display: block;
    text-decoration: none;
    color: #ddd;
    background: rgba(0, 0, 0, 0.5);
    transition: background ease .5s;
    text-shadow: 2px 2px 10px #000;
    line-height: 25rem;
}

.featured-services a:hover, .featured-tires a:hover, .featured-wheels a:hover {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

.featured-services a span, .featured-wheels a span, .featured-tires a span {
    padding: 1rem;
    border: solid .3rem #8e0d0d;
}

.featured-services a:hover span, .featured-wheels a:hover span, .featured-tires a:hover span {
    border: solid .35rem #b51313;
}

.no-padding-top {padding-top: 0;}

/* Wordpress Styles */
.alignwide {
    margin: 0;
    max-width: 100rem;
}

.alignwide img,
.alignfull img {
    display: block;
    margin: 0 auto;
}


.widget {margin-bottom: 2rem;}
.widget:last-child {margin: 0;}


@media screen and (min-width: 360px) {

    a.logo {
        width: 213px; height: 4rem; 
        background: url(https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/logo.png);
        background: -webkit-image-set( url('https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/logo.png') 1x, url(https://sandiegobudgettireco.com/wp-content/themes/budgettireco/images/logo2x.png) 2x); 
        display: block; 
        float: left;
        margin: 0;
    }

    ul#mobile-nav li:last-child {margin-bottom: 0;}

    body > header, body > footer, body > main, body > section {padding: 3rem;}

    #top-menu {padding: 1rem 2rem;}

    body > footer > .wrapper {max-width: 40rem;}

    body > main > .wrapper {max-width: 40rem;}
    
    .no-padding-top {padding-top: 0;}
    
    .wp-block-columns {margin: 2rem 0;}

    .wp-block-column {padding-right: 2rem;}

    .wp-block-column:last-child {padding: 0;}

    
}

@media screen and (min-width: 1000px) {
    
    /* Custom Theme Style */
    .wheels-banner {margin-top: 4rem;}
    
    /* General Styles */
    html {font-size: 15px;}

    .grid-three-col {grid-template-columns: repeat(3, 1fr);}

    .shop-locations {
        grid-template-columns: 1fr 2fr;
    }

    .hamburger {display: none;}

    #top-menu {padding: 0; position: relative;}

    #top-menu .wrapper {padding-top: 2rem;}

    #top-menu br {display: none;}

    a.logo {float: none; margin: auto;}

    ul#mobile-nav {display: none;}

    ul#desktop-nav {display: block; padding: 0; float: none; margin: 0 auto; text-align: center;}

    ul#desktop-nav li {display: inline-block; position: relative; margin: 0; text-transform: uppercase; font-weight: bold; font-size: 1rem;}

    ul#desktop-nav li > a {color: #444; text-decoration: none; text-align: center; line-height: 4rem; background: transparent; padding: 1rem; margin: 0; display: block;}

    ul#desktop-nav li > a:hover {background: transparent; color: #000;}

    /* Dropdown Menu */
    ul#desktop-nav li.parent ul {margin:0;}

    ul#desktop-nav li ul {
        display: none; 
        position: absolute; 
        background: #8e0d0d; 
        padding: 0; 
        z-index: 9999;
    }

    ul#desktop-nav li:hover {cursor: pointer;}
    ul#desktop-nav li:hover ul, ul#desktop-nav li:focus ul {display: block;}
    ul#desktop-nav li ul li {float: left; white-space: nowrap; margin: 0; display: block; width: 100%;}
    ul#desktop-nav li ul li a {color:#ffeeee; display: block; font-size: .8rem; border-bottom: solid 1px #6a0b0b; line-height: 2rem;}
    ul#desktop-nav li ul li a:last-of-type {border-bottom: none;}
    ul#desktop-nav li ul li a:hover {color: #fff; background: #b51313;}

    /* Main Styles */
    
    body > header {margin-top: 0;}
        
    body > main, body > section {padding: 6rem 3rem;}
    
    .no-padding-top {padding-top: 0;}

    body > main > .wrapper {max-width: 100rem;}

    body > footer > .wrapper {max-width: 70rem;}

    body > footer a.logo-footer {margin: 0 0 1rem 0;}

    body > footer span.small {text-align: left;}
    
    
    /* Shop Locations Styles */
    #locations-container {
        height: 450px;
        background-position: center center;
        background-size: cover;
    }

    /* Wordpress Styles */

    .alignfull {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
    }
    
    .wrapper-small {max-width: 70rem;}
    
    figure.wp-block-image {padding-bottom: 1rem;}
    
}

@media screen and (min-width: 1220px) {
    
    a.logo {float: left; margin: 1rem 2rem 0 0;}
    
    ul#desktop-nav {float: left;}
    
    #top-menu .wrapper {padding-top: 0;}
    
    figure.wp-block-image {padding-bottom: 1.5rem;}

}

@media screen and (min-width: 1680px) {
    .alignwide {
        margin-left: -15rem;
        margin-right: -15rem;
        max-width: 100rem;
    }
}

@font-face {
  font-family: 'Chivo Bold';
  src: url('https://sandiegobudgettireco.com/wp-content/themes/budgettireco/fonts/Chivo-Bold.woff2') format('woff2'),
       url('https://sandiegobudgettireco.com/wp-content/themes/budgettireco/fonts/Chivo-Bold.woff') format('woff'),
       url('https://sandiegobudgettireco.com/wp-content/themes/budgettireco/fonts/Chivo-Bold.ttf') format('truetype');
}