/*
* Mama's Earth V1.0
* Copyright 2022, Mama's Earth
*/


/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Colors
- Fonts
- Base Styles
- Typography
- Grid
- Sections
- Links
- Buttons
- Forms
- Lists
- Code
- Tables
- Spacing
- Utilities
- Clearing
- Media Queries
*/


/* Colors
________________________________________________________ 
	Top banner: #FFF9DB - #fffceb - #f9f7f0
	Logo brown: #3D202E
	Small text: #624B55
	Dark Grey: #3A464F
	Cool Grey: #A4A6A8
	Light Grey: #EEEEEE
*/


/* Fonts
	Body font: muliregular
________________________________________________________ */	

@font-face {
	font-family: 'oswaldextralight';
	src: url('../assets/fonts/oswald-extralight-webfont.woff2') format('woff2'),
		 url('oswald-extralight-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;

}

@font-face {
	font-family: 'oswaldlight';
	src: url('../assets/fonts/oswald-light-webfont.woff2') format('woff2'),
		 url('../assets/fonts/oswald-light-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'oswaldmedium';
	src: url('../assets/fonts/oswald-medium-webfont.woff2') format('woff2'),
		 url('../assets/fonts/oswald-medium-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'oswald_regularregular';
	src: url('../assets/fonts/oswald-regular-webfont.woff2') format('woff2'),
		 url('../assets/fonts/oswald-regular-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'roboto_condensedlight';
	src: url('../assets/fonts/robotocondensed-light-webfont.woff2') format('woff2'),
		 url('../assets/fonts/robotocondensed-light-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'roboto_condensedregular';
	src: url('../assets/fonts/robotocondensed-regular-webfont.woff2') format('woff2'),
		 url('../assets/fonts/robotocondensed-regular-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}


/* Base styles
________________________________________________________ */

/* NOTE
html is set to 62.5% so that all the REM measurements are based on 10px sizing.
So basically 1.5rem = 15px :) */

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 15px 40px 0 40px;
	background: linear-gradient(#FFFDF5 130px, #FFFFFF 0%);
	font-family: 'roboto_condensedlight', sans-serif;
	font-size: 62.5%;
	color: #3D202E;
}

ul, li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.bullet li {
	list-style-type: square; 
	margin-left: 20px;
}

hr {
	border-top: solid .5px #3D202E;
	margin: 0 -40px -1px -40px;
	padding: 0;
}

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1, h2, h3 {
  margin: 0;
  padding: 0;
  font-family: 'oswaldextralight', sans-serif;
  font-weight: normal;
  font-style: normal;
  letter-spacing: -.05rem;
}

h2, h3 {
  margin-top: .5em;
}

h4, {
	margin: 0;
	padding: 0;
	font-family: 'roboto_condensedregular', sans-serif;
	font-weight: normal;
	font-style: normal;
}

h1 { font-size: 4.5em; }
h2 { font-size: 4em; }
h3 { font-size: 3em; }
h4 { font-size: 2.2em; }
p, li { margin: 0; font-size: 2.1em; line-height: 1.5em;}
p, ul {	margin-bottom: 1.5em; }


/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
  color: #78BE20;
  text-decoration: none;
}

a:hover {
  color: #3D202E;
}

a.button {
  background-color: #78BE20;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: 'roboto_condensedregular', sans-serif;
  font-size: 2em;
  margin: 15px 0;
  cursor: pointer;
  border-radius: 18px;
}

a.button:hover {
	background-color: #3D202E;
	color: white;
}

/* Masthead and menus
________________________________________________________ */

.masthead {
	max-width: 1170px;
	height: 115px;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-gap: 10px;
	grid-template-columns: auto repeat(1, max-content);
}

#nav {
	margin-top: 70px;
	white-space: nowrap;
	display: grid;
	grid-gap: 25px;
	grid-template-columns: repeat(5, max-content);
}

#nav a {
	text-decoration: none;
	font-size: 2em;
	font-family: 'roboto_condensedregular', sans-serif;
	color: #3D202E;
}

#nav a:hover {
	color: #78BE20;
}

/* Mobile nav */
#mobile-nav {
	width: 300px;
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
}

/* Mobile nav hamburger */
.hamburger {
	position: absolute;
	cursor: pointer;
	margin: 55px 0 10px 225px;
	z-index: 2;
}

.bar1, .bar2, .bar3 {
	width: 50px;
	height: 3px;
	background-color: #3D202E;
	margin: 6px 0;
	transition: 0.5s;
}

.change .bar1 {
	-webkit-transform: rotate(-45deg) translate(-6px, 6px);
	transform: rotate(-45deg) translate(-6px, 6px);
}

.change .bar2 {
	opacity: 0;
}

.change .bar3 {
	-webkit-transform: rotate(45deg) translate(-7px, -7px);
	transform: rotate(45deg) translate(-7px, -7px);
}

/* Mobile nav drawer */
.mNav-content {
  display: none;
  position: absolute;
  padding-top: 100px;
  top: 0;
  right: 0;
  width: 300px;
  z-index: 1;
  list-style-type: none;
  background-color:  #78BE20;
}

.mNav-content li {
	border-top: solid 1px #3D202E;
}

.mNav-content a {
	display:inline-block;
	width:100%;
	height:100%;
	font-size: 2.5em;
	color: #3D202E;
	text-decoration: none;
	white-space: nowrap;
	padding: 20px;
}

.mNav-content li:hover {
	background-color:  #3D202E;
	color: #EEEEEE;
}

.mNav-content a:hover {
	color: #EEEEEE;
}

/* Hero (note: .hero embedded in includes/header.php)
________________________________________________________ */

.hero-text {
	max-width: 1050px;
	height: 100%;
	margin: 0 auto;
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	font-size: 175%;
	/*text-shadow: 2px 2px 8px #989595;*/
}

.hero-text p {
	line-height: 1em;
}

a.hero-button {
	font-size: 1.4em;
}



/* Damsel (one column span)
________________________________________________________ */

.damsel {
	margin: 0 auto 135px auto;
	padding: 0;
	max-width: 1170px;
	display: grid;
	grid-gap: 50px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	font-size: 120%;
}

a.damsel-button { font-size: 1.8em; }

/* Standard grid (.title use in all grids)
________________________________________________________ */

.container {
	margin: 0 auto 100px auto;
	padding: 0;
	max-width: 1170px;
	display: grid;
	grid-gap: 60px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tile > img {
	width: 100%;
	border-radius: .7rem;
	margin-bottom: 10px;
}

/* Footer
________________________________________________________ */

footer {
	background-color: #FFFDF5;
	border-top: solid .5px #3D202E;
	height: 100%;
	margin: 0 -40px;
	padding: 40px 0;
}

footer a {
  color: #3D202E;
}

footer a:hover {
  color: #78BE20;
}

footer h4 {
	margin-bottom: .5em;
}

.footer_text {
	max-width: 1170px;
	margin: 0 auto 40px auto;
	padding: 0 40px;
}

.policy {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 40px;
	font-size: 1.5em;
}

/* Misc. styles
________________________________________________________ */

p.intro {
	font-size: 2.9em;
	line-height: 1.2em;
}

.small {
	font-size: 1.5em;
	margin: 0;
}

.tag {
	font-size: 1.9em;
	margin: 0;
}

.grey {
	color: #A4A6A8;
	font-size: .8em; 
}

h1.headline {
	font-size: 5.5em;
	margin-top: 40px;
}

/* Mobile screen and typography adjustments
________________________________________________________ */

@media screen and (min-width: 680px) {
	#mobile-nav {
		display: none;
	}
	#nav {
		display: show;
	}
}

@media screen and (max-width: 679px) {
	#nav {
		display: none;
	}
	#mobile-nav {
		display: show;
		
	}
	#mobile-nav li { 
		font-size: 1.5em;
	}
	.container {
		display: grid;
		grid-template-columns: auto;
		grid-template-rows: auto;
	}
	.hero-fade {
		background: rgba(250, 250, 250, 0.6);
		padding: 7px;
		border-radius: .7rem;
	}
	.hero-text h1, p {
		margin-bottom: 0;
	}
	
	.hero-text h1 {
		margin-top: -15px;
	}
}


