﻿/*
Theme Name: Pharmacy Theme 
Author: Cappers.ca
Author URI: https://cappers.ca/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.00
Requires at least: 4.7
Requires PHP: 5.6
Description: Serving the Veterinary Community
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, theme-options, translation-ready, block-styles, wide-blocks, accessibility-ready
Text Domain: pharmacytheme
*/

/**
 * Table of Contents:
 * 1.0 GENERAL
 * 2.0 HEADER
 *   2.1 MAIN MENU
 *   2.2 MOBILE MENU
 * 3.0 CONTENT
 *   3.1 BLOG
 *   3.2 FORM
 *   3.3 SLIDER
 * 4.0 FOOTER
 * 5.0 MEDIA QUERIES
 * --------------------------------------
*/

/*====================================== 
  1.0 GENERAL
========================================*/
html, body {
  padding: 0;
  margin: 0;
  background: #FFF;
  color: #333;
  font: 18px/1.5 'Lato', sans-serif;
	  
}
*, *:after, *:before  {
	box-sizing: border-box;
}
*, *:after, *:before, a:focus, button:focus  {
	outline: none;
}
a {
	text-decoration: none;
	-ms-transition: all 0.1s ease-out;
	-webkit-transition: all 0.1s ease-out;
     transition: all 0.1s ease-out;
}
a:hover, a:visited, a:focus {
	text-decoration: none;
	outline-offset: 0; 
}
h1, h2, h3, h4 {
	margin-bottom: 1.5rem;
}
p {
	margin: 0 0 1rem 0;
}
div, header, footer, article, section {
	position: relative;
	display: block;
}
img {
	max-width: 100%;
	height: auto;              
}
/*====================================== 
  2.0 HEADER
========================================*/
#main-header {
	border-bottom: 6px solid #fff;
}
.top-bar {
	background-color: #CC0000;
	padding: 15px 0;
	text-align: center;
	color: #fff;
}
.top-bar a {
	color: #fff;
	text-decoration: underline;
}

#main-header > .wrapper {
	padding-top: 40px;
	flex-direction: column;
	justify-content: center;
}
.site-logo {
	max-width: 360px;
	padding: 0 40px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px;
}
#main-header .btn-group {
	justify-content: center;
}
#main-header .btn-group .btn  {
	margin: 0 1rem;
	flex: 0 0 auto;
	border-radius: 4px;
}
#main-header .btn-group .btn:hover,
.align-center .wpcf7-form input.wpcf7-submit:hover {
	background-color: #fff !important;
}
/*-------------
* 2.1 MAIN MENU
---------------*/
.nav-header {
	justify-content: center;
}
.main-menu {
	padding: 1rem 0;
	justify-content: center;
}
.main-menu li {
	position: relative;
	margin: 0 1rem;
}
.main-menu a {
	display: inline-block;
	color: #fff;
	padding: 0.5rem;
}
.main-menu > li.menu-item-has-children {
	padding-right: 0.75rem;
}
.main-menu > li.menu-item-has-children > a:before {
	position: absolute;
	content: '\25BC';
	right: 0;
	top: 50%;
	margin-top: -0.25rem;
	font-size: 0.5rem;
}
.main-menu .sub-menu {
	position: absolute;
	display: none;
	left: 0;
	top: 100%;
	width: auto;
	padding: 0 0.5rem;
	border: solid 1px rgba(255,255,255,0.5);
	list-style: none;
	z-index: 99;
}
@media only screen and (min-width: 1081px) {
.main-menu li:hover > .sub-menu {
	display: block;
}
}
.main-menu .sub-menu li {
	margin: 0;
}
.main-menu .sub-menu a {
	white-space: nowrap;
}
.main-menu a[href="#"]{
	cursor: auto;
}
/*-------------
* 2.2 MOBILE MENU
---------------*/
.menu-icon {
	display: none;
	position: absolute;
	right: 1.5rem;
	top: 50%;
	margin-top: -12px;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}
.mobile-menu-header {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 2rem;
	z-index: 99;
}
.menu-close {
	position: absolute;
	right: 1.5rem;
	top: 0;
	width: 30px;
	height: 30px;
	padding: 0;
	background-color: transparent;
	color: #fff;
	text-align: center;
	font-size: 24px;
	line-height: 30px;
	border: 0;
	cursor: pointer;
	
}
body.admin-bar .mobile-menu-header {
	top: 46px;
}
body.menu-open {
	overflow: hidden;
}
.mobile-menu {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	padding: 1.5rem 0;
	z-index: 9999;
}
body.admin-bar .mobile-menu {
	padding-top: 46px;
}
.mobile-menu .wrapper {
	padding-top: 2rem;
	height: auto;
	overflow: auto;
}
/*====================================== 
  3.0 CONTENT
========================================*/
.wrapper,
.wp-block-group__inner-container,
.wp-block-group > *:not(div),
.content-page > *:not(div),
.site-contetnt > *:not(div) {
	width: 100%;
	padding: 0 4rem;
}
.wp-block-group {
	padding: 80px 0;
}
.wp-block-group .wp-block-group {
	width: 100%;
	padding: 50px 0;
}
.wp-block-cover {
	padding: 8.5rem 4rem;
}
.wp-block-cover__inner-container .wp-block-group.has-background  {
	max-width: 885px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 4px;
	padding: 2rem;
}
.wp-block-cover__inner-container .wp-block-group__inner-container {
	padding: 0;
}
.btn,
.wp-block-button__link {
	border-radius: 4px;
	color: #fff;
	line-height: 1.2;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-weight: 700;
}
.wp-block-button__link {
	text-align: left;
}
.btn:hover,
.wp-block-button__link:hover {
	color: #fff;
}
.btn-large,
.btn-large .wp-block-button__link {
	padding: 1rem;
}
.site-contetnt a {
	font-weight: 700;
}
.c-white,
.c-white a {
	color: #fff !important;
}
.mb-6 {
	margin-bottom: 4rem !important;
  }
.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) {
	width: 1000px;
	max-width: 80%;
	height: 1px !important;
	margin: 0 auto;
}
.wp-block-separator.has-background.is-style-wide {
	width: 100%;
	height: 6px !important;
	margin: 0;
}
:where(.wp-block-columns.is-layout-flex),
.reviews-loop {
  gap: 4rem !important;
}
ul.text-center {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.has-media-on-the-right .wp-block-media-text__content {
	padding-left: 0;
}
.maxWidth--content {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}
.box-shadow {
	box-shadow: 0 10px 20px 0 rgba(0,0,0,0.3);
}
.box-shadow-bottom {
	box-shadow: 0 8px 10px 0 rgba(0,0,0,0.3);
  }
  .wp-block-media-text__media {
	text-align: center;
  }
  .wp-block-media-text__media img {
	max-width: 100%;
	width: auto;
  }
.circleImg .wp-block-media-text__media {
	position: relative;
	box-shadow: 0 8px 10px 0 rgba(0,0,0,0.3);
    height: 0;
	padding-bottom: 100%;
	border-radius: 100%;
	overflow: hidden;
}
.circleImg .wp-block-media-text__media img {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0; left: 0;
	object-fit: cover;
}
.wp-block-gallery {
	margin-left: -2rem;
	margin-right: -2rem;
}
.wp-block-gallery .wp-block-image {
	padding: 2rem;
}
.wp-block-image .alignleft {
	margin-right: 2rem;;
}
.wp-block-image .alignright {
	margin-left: 2rem;;
}
ul.text-center {
	padding: 0;
	list-style: none;
}
ul.text-center li::before {
	content: '\2022';
	margin-right: 0.5rem;
	font-size: 14px;
}
.responsive-google-slides {
	padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.responsive-google-slides iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}
.reviews-loop {
	flex-wrap: wrap;
}
.frontend-hidden {
	display: none;
}
/*-------------
* 3.1 BLOG
---------------*/
.loop-post {
	display: flex;
	flex-wrap: wrap;
	padding-top: 80px;
	padding-bottom: 80px;
	gap: 4rem;
}
.loop-post .post-news {
	width: calc(33.3333% - 2.6666rem);
	box-shadow: 0 8px 10px 0 rgba(0,0,0,0.3);
}
.thumbnail {
	width: 100%;
	height: 0;
	padding-bottom: 56%;
}
.thumbnail img {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	object-fit: cover;
}
.post-meta {
	padding: 1rem;
}
.excerpt p {
	display: inline;
}
.read-more {
	font-weight: 700;
}
.loop-post .post-news a:hover .read-more {
	text-decoration: underline;
}
/*-------------
* 3.2 FORM
---------------*/
.align-center .wpcf7-form,
.align-center .wpcf7-form > p {
	display: flex;
	justify-content: center;
	max-width: 100%;
}
.app-form .wpcf7-form {
	max-width: 565px;
	margin-left: auto;
	margin-right: auto;
}
.wpcf7-form input {
	background: #fff;
	padding: 0 1rem;
	width: 100%;
	max-width: 680px;
	height: 2.5rem;
	line-height: 2.5;
	border: 1px solid #C8C8C8;
}
.align-center .wpcf7-form input,
.app-form .wpcf7-form input {
	width: auto;
	max-width: 100%;
}
.app-form .wpcf7-form input.phone {
	max-width: 300px;
	margin-right: 1rem;
	width: 100%;
}
.wpcf7-form textarea {
	width: 100%;
	max-width: 680px;
	height: 200px;
	padding: 1rem;
}
.wpcf7-form input.wpcf7-submit {
	width: auto;
	color: #fff;
	border: 0;
	border-radius: 4px;
	-ms-transition: all 0.1s ease-out;
	-webkit-transition: all 0.1s ease-out;
     transition: all 0.1s ease-out;
}
.align-center .wpcf7-form input.wpcf7-submit {
	margin-left: 15px;
}
.wpcf7-spinner {
	position: absolute;
	right: 0;
}
/*-------------
* 3.3 SLIDER
---------------*/
.slick-slider{
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list{
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.slick-list:focus{
    outline: none;
}
.slick-list.dragging{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;
    display: flex;
}
.slick-track:before,
.slick-track:after
{
    display: table;
    content: '';
}
.slick-track:after
{
    clear: both;
}
.arrow-hidden .slick-list,
.arrow-hidden .slick-track{
	min-width: calc(100% + 40px);
}
.arrow-hidden .slick-list {
	transform: translateX(-20px);
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    height: inherit;
    min-height: 1px;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;
    height: auto;
    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}
.slick-arrow {
	display: none !important;
}
.slick-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	transform: translateY(20px);
}
.slick-dots li {
	display: block;
	margin: 4px;
	width: 10px;
	height: 10px;
	background: #D9D9D9;
	border-radius: 10px;
}
.slick-dots li.slick-active {
	background: #007B3F;
}
.slick-dots li:before,
.slick-dots li button {
	display: none !important;
}
/*====================================== 
  4.0 FOOTER
========================================*/
#main-footer {
	padding: 2.5rem 0 1rem;
	border-top: 6px solid;
}
#main-footer .wrapper {
	text-align: center;
}
.social_accounts a {
	display: inline-block;
	margin: 5px;
	width: 50px;
	height: 50px;
	border-radius: 50px;
	text-align: center;
}
.social_accounts a i {
	font-size: 1.5rem;
	line-height: 50px;
}
.copy {
	margin-top: 3.5rem;
}
/*====================================== 
  5.0 MEDIA QUERIES
========================================*/
@media only screen and (max-width: 1200px) {
	.app-form .wpcf7-form-control-wrap { width: calc(100% - 150px); margin-right: 1rem;}
}
@media only screen and (max-width: 1080px) {
	.wrapper, 
	.wp-block-group__inner-container, 
	.wp-block-group > *:not(div),
	.content-page > *:not(div),
	.site-contetnt > *:not(div) { padding-left: 1.5rem; padding-right: 1.5rem; }
	.wp-block-cover { padding: 8.5rem 1.5rem; }
	:where(.wp-block-columns.is-layout-flex), 
	.reviews-loop,
	.loop-post  { gap: 2rem !important; }
	.menu-icon { display: block; }
	#main-header .btn-group,
	#main-header .nav-header,
	.main-menu > li.menu-item-has-children > a::before { display: none !important;}
	.btn-group,
	.main-menu { flex-direction: column; width: 100%; }
	.btn-group .btn { margin-bottom: 1rem; width: 100%; }
	.main-menu { justify-content: flex-start; width: 100%; }
	.toggle-submenu { position: absolute; right: 0; top: 0; padding: 5px; font-size: 24px; color: #fff; cursor: pointer; z-index: 19;}
	.main-menu .sub-menu { position: relative; border: 0; top: 0;}
	li.menu-item-has-children.open .toggle-submenu { transform: rotate(90deg);}
	li.menu-item-has-children.open .sub-menu { display: block;}
	.app-form { max-width: 100%;}
}
@media only screen and (max-width: 781px) {
	.wp-block-columns.mob-col-2 > .wp-block-column { flex: 0 0 50% !important; max-width: calc(50% - 1rem);}
	.mob-col-reverse { flex-direction: column-reverse; }
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { margin-bottom: 1rem; }
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:last-child { margin-bottom: 0; }
	.loop-post .post-news { width: calc(50% - 1.33333rem); }
}
@media only screen and (max-width: 600px) {
	.align-center .wpcf7-form span.wpcf7-form-control-wrap { width: calc(100% - 170px); }
	.wp-block-group { padding: 40px 0 60px; }
	.wp-block-media-text .wp-block-media-text__media { margin-bottom: 1rem !important; }
	.wp-block-media-text__media img { width: 100%; }
	.wp-block-media-text .wp-block-media-text__content { padding: 0; }
	.wp-block-gallery { margin-left: -0.5rem; margin-right: -0.5rem;  }
	.wp-block-gallery .wp-block-image { padding: 0.5rem; }
	.wp-block-image .alignleft,
	.wp-block-image .alignright { float: none; margin: 0 auto 2rem; }
	.app-form .wpcf7-form input.phone { min-width: 100%; }
}
@media only screen and (max-width: 480px) {
	span.wpcf7-form-control-wrap,
	.align-center .wpcf7-form span.wpcf7-form-control-wrap { width: 100%; margin-bottom: 1rem; }
	.align-center .wpcf7-form > p { flex-wrap: wrap;}
	.loop-post .post-news { width: 100%; }
	.wp-block-buttons > .wp-block-button { display: block; width: 100%; }
	.wp-block-button__link { text-align: center; width: 100%; }
}
@media only screen and (max-width: 400px) {
	.app-form .d-flex { flex-wrap: wrap;}
	.app-form .wpcf7-form-control-wrap { width: 100%; margin-right: 0; margin-bottom: 1rem; }
}