/*
Theme Name: Subway - NML
Author: m5 Marketing Communications
Version: 1
Text Domain: base

*/

@import url( includes/css/bootstrap-wp.css );

@font-face {
    font-family: 'SubwaySansCond';
    src: url('includes/fonts/SubwaySansCond-Medium.woff2') format('woff2'),
         url('includes/fonts/SubwaySansCond-Medium.woff') format('woff'),
         url('includes/fonts/SubwaySansCond-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    text-rendering: optimizeLegibility;
}
@font-face {
    font-family: 'SubwaySansCond';
    src: url('includes/fonts/SubwaySansCond-Bold.woff2') format('woff2'), /* Modern Browsers */
         url('includes/fonts/SubwaySansCond-Bold.woff') format('woff'), /* Modern Browsers */
         url('includes/fonts/SubwaySansCond-Bold.ttf') format('truetype'); /* Safari, Android, iOS */
    font-style: normal;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}
@font-face {
    font-family: 'SubwaySansLCG';
    src: url('includes/fonts/SubwaySansLCG-Regular.woff2') format('woff2'),
         url('includes/fonts/SubwaySansLCG-Regular.woff') format('woff'),
         url('includes/fonts/SubwaySansLCG-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}
@font-face {
    font-family: 'SubwaySansLCG';
    src: url('includes/fonts/SubwaySansLCG-Medium.woff2') format('woff2'),
         url('includes/fonts/SubwaySansLCG-Medium.woff') format('woff'),
         url('includes/fonts/SubwaySansLCG-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    text-rendering: optimizeLegibility;
}
@font-face {
    font-family: 'SubwaySansLCG';
    src: url('includes/fonts/SubwaySansLCG-Semibold.woff2') format('woff2'),
         url('includes/fonts/SubwaySansLCG-Semibold.woff') format('woff'),
         url('includes/fonts/SubwaySansLCG-Semibold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    text-rendering: optimizeLegibility;
}
@font-face {
    font-family: 'SubwaySansLCG';
    src: url('includes/fonts/SubwaySansLCG-Bold.woff2') format('woff2'),
         url('includes/fonts/SubwaySansLCG-Bold.woff') format('woff'),
         url('includes/fonts/SubwaySansLCG-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}



body {
	color: #008d43;
	font: 500 24px/1.25 'SubwaySansCond';
	background-image: url("img/clouds.jpg");
	background-repeat: no-repeat;
	background-position: top left;
}
h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-weight: 700;
	font-family: 'SubwaySansLCG';
}
a { color: #f2b700; }
a:hover {
	color: #008938;
	text-decoration: underline;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

:focus { outline: none; }

img {
	display: inline-block;
	height: auto;
	max-width: 100%;
}
img[class*="wp-image-"] {
	margin-top: 10px;
	margin-bottom: 10px;
}
.wp-caption {
	border: 1px solid #ccc;
	margin-bottom: 10px;
	max-width: 100%;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0 10px;
}
.wp-caption.aligncenter {
	margin-bottom: 10px;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
}
.wp-caption .wp-caption-text {
	text-align: center;
	margin-top: 10px;
}

/* WP Gallery */
.gallery {
	margin-bottom: 1.5em;
}
.gallery a img {
	border: none;
	height: auto;
	max-width: 90%;
}
.gallery dd {
	margin: 0;
}
embed,
iframe,
object {
	max-width: 100%;
}

/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}

.btn,
button,
input[type=submit] {
	display: inline-block;
	color: #fff;
	font:600 24px/1 'SubwaySansLCG';
	text-transform: uppercase;
	padding: 18px 52px;
	border: 0;
	border-radius: 5px;
	background: #f2b700;
}
.btn:hover,
button:hover,
input[type=submit]:hover {
	background: #febc11;
}

button.gform_delete_file {
	background: #f2b700 !important;
	padding: 2px 4px;
	margin-top: -5px;
    margin-left: 5px;
}

.container {
	max-width: 1080px;
	padding: 0 30px;
	margin: 0 auto;
}

sup {
	top: -1em;
	font-size: 42%;
}

/* Content */
.main-content-inner { padding-bottom: 1.5em; }
.hentry { margin: 0 0 1.5em; }
.clear { clear: both; }

#masthead {
	position: relative;
}
#masthead .row,
.sub-header .row {
    margin: 0;
}
.sub-header .row {
	padding: 40px 0 36px;
	border-bottom: 1px solid #f2b700;
}
#masthead .row:before,
.sub-header .row:before,
#masthead .row:after,
.sub-header .row:after {
	display: none;
}
#masthead .col,
.sub-header .col {
	min-height: 1px;
}
#logo {
	position: relative;
	display: block;
	width: 100%;
	max-width: 480px;
}
.site-tagline .logotype {
	max-width: 275px;
	margin-top: 10px;
	margin-left: -4px;
}
.site-tagline h2 {
	color: #fff;
	font:700 38px/1 'SubwaySansCond';
	padding-left: 9px;
}
.fr .site-tagline h2 { font-size: 34px; }
.site-tagline h2 span {
	color: #febc11;
}
.site-tagline h2 sup {
	font-size: 60%;
	top: -0.5em;
}
.sub-logo img { margin: 0 85px; }

.entry-content h1 {
	padding: 12px 0 16px 0;
}

.main-content {
	padding: 30px 0;
}
.page-header { border: 0; }

form.post-password-form {
    text-align: center;
}
form.post-password-form h1 {
	margin-bottom: 26px;
}
form.post-password-form input[type=password] {
	padding: 10px 10px 6px
}
form.post-password-form input[type=submit] {
	font-size: 20px;
	font-weight: 500;
	padding: 17px 12px 10px 12px;
    line-height: 21px;
}

#gform_1 {
	margin: 60px 0 30px;
}

#gform_1 h1 { color: #f2b700; }
#gform_1 label {
    font-weight: 500;
    text-align: right;
    font-size: 24px;
    padding-right: 10px;
    padding-top: 8px;
}
body.fr #gform_1 label {
    font-size: 20px;
}
#gform_1 label.gfield_consent_label {
	padding-top: 0;
	margin-bottom: 0;
	color: #000;
}
body.fr #gform_1 label.gfield_consent_label {
    font-size: 24px;
}

#gform_1 input[type=text],
#gform_1 textarea,
#gform_1 select,
input[type="password"] {
	color: #000;
	font:400 18px/1.5 'SubwaySansLCG';
}
#gform_1 select {
	height: 44px;
	font-size: 24px;
}

form.post-password-form input[type=password],
#gform_1 input[type=text] {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 5px;
	box-shadow: inset 2px 2px 0 rgba(0,0,0,.2);
	background: #eee;
}
#gform_1 select {
	border: 0;
	border-radius: 5px;
	box-shadow: inset 2px 2px 0 rgba(0,0,0,.2);
	background: #eee;
}

.gform_wrapper.gravity-theme .left_label .gfield_html_formatted,
.gform_wrapper.gravity-theme .right_label .gfield_html_formatted {
 	margin-left: 0 !important;
 }

.ginput_container_fileupload,
.ginput_container_textarea,
#validation_message_1_6,
#validation_message_1_7,
.nolabel .ginput_container_consent {
	width: 100% !important;
}

#gform_1 textarea,
#gform_1 .gform_drop_area {
	border: 0;
	border-radius: 5px;
	background: #eee;
}
#gform_1 .gform_drop_area {
	display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
	height: 280px;
	font-family: 'SubwaySansLCG';
}
#gform_1 .gform_drop_area button {
	color: #454442;
	background: none;
}
#gform_1 input[type=file] {
	
}
#gform_1 .gform_fileupload_rules {
	font-size: 80%;
}
#field_1_7 { margin-bottom: 30px; }

#gform_1 .gform_footer {
	padding-top: 30px;
	padding-left: 0;
	text-align: right;
}
#field_1_12,
#field_1_14,
#field_1_18,
#field_1_9 {
	margin-top: 46px;
}

.gform_wrapper {
    padding-top: 40px;
}
.gform_wrapper .h1 {
    color: #f2b700;
}
.gform_required_legend { display: none !important; }
.main-content .gform_wrapper.gravity-theme .gform_fields.left_label fieldset .ginput_container, 
.main-content .gform_wrapper.gravity-theme .gform_fields.right_label fieldset .ginput_container {
    width: 100%;
}
.main-content .gform_wrapper.gravity-theme .gform_footer.left_label {
    padding-left: 0;
}
.main-content .gform_wrapper.gravity-theme .gfield_label {
    font-size: 18px;
}
.ginput_container_consent {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.ginput_container_consent input {
    margin-right: 10px;
}
.ginput_container_consent label {
    width: calc(100% - 23px);
}


#footer {
	padding: 30px 0;
	background: #008938;
}
#footer .row {
	display: flex;
	align-items: stretch;
}
.footer-logo img {
	width: 80px;
}
.footer-info {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	color: #fff;
	text-align: right;
}
.footer-info h4 {
	margin: 0;
	font:500 14px/1.25 'SubwaySansCond';
	text-transform: uppercase;
}
.footer-info p {
	margin: 0;
	font:400 14px/1.285 'SubwaySansLCG';
}
body.en .footer-info sup {
	top: 0em;
    font-size: 100%;
}

.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer {
	margin: 0 !important;
}


@media (min-width: 691px) {

	#masthead .row,
	.sub-header .row {
		display: -ms-flexbox;
	    display: flex;
	    -ms-flex-pack: center;
	    justify-content: center;
	    margin: 0;
	}
	#masthead .col,
	.sub-header .col {
		width: 47.06%;
	}
	#logo { margin-bottom: -84px; }
	.sub-logo {
		display: -ms-flexbox;
	    display: flex;
	    -ms-flex-pack: justify;
	    justify-content: space-between;
		vertical-align: bottom;
	}
	
}

@media (min-width: 992px) {
	
	
}

@media (max-width: 1160px) {
	
	.fr .site-tagline h2 { font-size: 32px; }
	
}

@media (min-width: 691px) and (max-width: 999px) {
	#masthead .col.site-tagline,
	.sub-header .col.sub-logo {
		width: 50%;
	}
	.site-tagline .logotype {
		width: 57.3%;
		margin-top: 4px;
	}
}

@media (max-width: 999px) {
	
	body { font-size: 20px; }
	h1, .h1 { font-size: 30px; }
	.site-tagline h2 {
		margin: 12px 0 6px;
		font-size: 28px;
	}
	.fr .site-tagline h2 { font-size: 26px; }
	
	.sub-header .row { padding-bottom: 50px; }
	.sub-logo { padding-left: 0; }
	.sub-logo img[alt="Never Miss Lunch"] {
		max-width: 215px;
	}
	.sub-logo img[alt="chacun son lunch"] {
		max-width: 195px;
	}
	.sub-logo img[alt="Banques alimentaires Canada"] {
		max-width: 140px;
	}
	
	.main-content { padding: 15px 0; }
	#gform_1 { margin-top: 40px; }
	#gform_1 label,
	#gform_1 input[type=text], #gform_1 textarea, #gform_1 select,
	#gform_1 .gform_drop_area button {
		font-size: 20px;
	}
	#field_1_12, #field_1_14,
	#field_1_18, #field_1_9 {
		margin-top: 20px;
	}
	#gform_1 .gform_drop_area {
		height: 240px;
	}
	
	.footer-info h4 { line-height: 1.2; }
	.fr .footer-info h4,
	.fr .footer-info p {
		font-size: 13px;
	}
	
}

@media (max-width: 690px) {
	
	body { font-size: 18px; }
	h1, .h1 { font-size: 23px; }
	.entry-content h1 { margin-top: 0; }
	.container { padding: 0 20px; }
	#masthead  { padding-bottom: 15px; }
	.site-logo { margin-bottom: 8px; }
	.site-tagline h2 {
		padding: 0;
	}
	.fr .site-tagline h2 { font-size: 21px; }
	.sub-header .row { padding: 20px 0; }
	.sub-logo { text-align: center; }
	.sub-logo img { margin: 10px 0; }
	
	.page-header { margin-top: 30px; }
	.page-title {
		margin: 0;
		font-size: 28px;
	}
	#gform_1 { margin-top: 25px; }
	#gform_1 .gform_fields { grid-row-gap: 8px; }
	#gform_1 .left_label .gfield:not(.gsection):not(.gfield_html):not(fieldset) {
		display: block;
	}
	#gform_1 .gfield_label,
	#gform_1 .ginput_container {
		width: 100%;
		line-height: 1;
		text-align: left;
	}
	#gform_1 .gfield_label { padding-bottom: 6px; }
	#gform_1 input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
		line-height: 1;
	}
	#gform_1 .gform_drop_area { height: 200px; }
	#gform_1 .charleft { margin-top: 4px; }
	#gform_1 .gform_footer { padding: 0; margin-top: 30px; }
	.btn, button, input[type=submit] {
		width: 100%;
		padding: 12px;
	}
    .footer-logo { padding-left: 0; }
    .footer-logo img { width: 150px; }
    .footer-info { padding-right: 0; }
    .footer-info h4 br { display: none; }
	
	.post-password-form p { margin-bottom: 20px; }
	.fr .post-password-form p { font-size: 21px; }
	.post-password-form label,
	.post-password-form label input {
		width: 100%;
	}
	.post-password-form label { margin-bottom: 15px; }
	.post-password-form label input { min-height: 48px; }
	
}
