/* CSS Document */

:root {
	--clr-text: #5a5a5a;
	--clr-primary: #74b72e;
	--clr-primary-dark: #125814;
	--clr-accent: #89107D;
	--clr-accent-dark: #800080;
	
	--ff-title: "homemade-apple", sans-serif;
	--ff-serif: "homemade-apple", serif;
	--ff-logo: "homemade-apple", serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	box-sizing: border-box;
	color: var(--clr-text);
	font-size: 1.125rem;
	font-style: normal;
	font-weight: 400;
}

body{
	margin: 0;
	text-align: center;
	font-family: 'homemade-apple';
	font-weight: 400;
}

.content {
	height: 200vh;
	background-color: white;
	background-blend-mode: multiply;
	background-size: cover;
	display: grid;
	place-items: center;
}


img {
	display: block;
	max-width: 100%;
	font-family: default;
	text-align: center;
}

section {
	padding: 3em 1em;
}

/*typography*/

h1, 
h2, 
h3, 
h4, 
p {
	margin: 0;
}

h2, 
h3 {
	font-family: 'homemade-apple';
	line-height: .8;
	letter-spacing: 1px;
}

h2 {
	font-size: 4rem;
}

p {
	margin-bottom: .85em;
}

p:last-child {
	margin-bottom: 0;
}

.section-title-small {
	font-size: 3rem;
}

.section-title-small small {
	font-size: .7em;
	display: block;
}

.text-primary { 
	color: var(--clr-primary);
}

.logo {
	margin-left: 1.5em;
}


/*navigation*/

header {
	background: white;
	text-align: center;
	position: fixed;
	z-index: 999;
	width: 100%;
	opacity: 90%;
	box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
}

header::after {
	content: "";
	display: table;
	clear: both;
}

.nav-toggle {
	position: absolute !important;
	top: -9999px
		!important;
	left: -9999px
		!important;
}

.nav-toggle:focus ~ .nav-toggle-label {
	outline: 3px solid rgba(lightgreen, .75);
}

.nav-toggle-label {
	position: absolute;
	top: 0;
	left: 0;
	margin-left: 1em;
	height: 100%;
	display: flex;
	align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	display: block;
	background: #5a5a5a;
	height: 4px;
	width: 2em;
	border-radius: 2px;
	position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: "";
	position: absolute;
}

.nav-toggle-label span::before {
	bottom: 7px;
}

.nav-toggle-label span::after {
	top: 7px;
}

nav {
	position: absolute;
	text-align: left;
	top: 100%;
	left: 0;
	background: white;
	width: 100%;
	transform: scale(1, 0);
	transform-origin: top;
	transition: transform 400ms ease-in-out;
}

nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

nav li {
	margin-bottom: 1em;
	padding-left: 1em;
	
}

nav a {
	color: var(--clr-primary);
	text-decoration: none;
	text-transform: uppercase;
	font-size: 1.2rem;
	opacity: 0;
	transition: opacity 150ms ease-in-out;
}

nav a:hover {
	color: #5a5a5a;
}

.nav-toggle:checked ~ nav {
	transform: scale(1, 1);
}

.nav-toggle:checked ~ nav a {
	opacity: 1;
	transition: opacity 250ms ease-in-out 250ms;
}



/*buttons*/

.btn-group {
	display: flex;
	flex: wrap;
	flex-direction: column;
	justify-content: center;
}

.btn-group__title {
	padding: 1em;
}

.btn {
	padding: .75em 2.5em;
	color: white;
	text-decoration: none;
	display: inline-block;
	margin: .5em 0;
	border-radius: .35em;
}

.btn:hover,
.btn:focus {
	color: var(--clr-accent);
	text-decoration: underline;
}

.btn-primary {
	background: var(--clr-primary);
}

.btn-primary:hover
.btn-primary:focus {
	background: var(--clr-primary-dark);
}

.btn-accent {
	background: var(--clr-accent);
}

.btn-accent:hover
.btn-accent:focus {
	background: var(--clr-accent-dark);
}

/*homepage styles */

.hero {
	background-color: #434343;
	background-image: url("../ADogsBestFriend.PNG");
	background-blend-mode: multiply;
	background-attachment: fixed;
	background-size: contain;
	color: white;
	text-align: center;
	padding: 45vh 1em 30vh 1em;
}


.about-us {
	background: var(--clr-accent);
	display: flex;
	flex-direction: column;
	color: white;
	padding: 5em;
}

.about-us__intro {
	background: var(--clr-accent-dark);
	background-size: cover;
	padding: 3em 1em 1.5em;
}


.about-us-body {
	padding: 1.5em 1em 3em;
}

.order-online {
	background: #f0f0f0;
}

.products {
	display: flex;
	flex-direction: column;
	max-width: 30rem;
	margin: 0 auto;
}

.product {
	background: #f0f0f0;
	border-radius: .35em;
	overflow: hidden;
	box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
}

.product:last-of-type {
	margin-bottom: 2em;
}

.product__content {
	padding: 1.5em;
}

.product__title {
	color: var(--clr-primary);
	font-size: 2.5rem;
	text-transform: uppercase;
	margin-bottom: .5em;
}

.fineprint {
	font-size: .75em;
	color: rgba(0, 0, 0, 0.85);
}

footer {
	background: #333;
	padding: 3em 1em;
	color: white;
	display: flex;
	justify-content: center;
	gap: 5em;
	margin-top: 3em;
}

footer a {
	color: inherit;
}

.footer-nav,
.footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav a {
	padding: .75em;
	text-decoration: none;
}

.footer-nav a:hover {
	text-decoration: underline;
}

.footer-social {
	list-style: none;
}

.social-link {
	display: inline-block;
	margin-bottom: 5px;
}

.social-icon {
	max-width: 50px;
}

@media only screen and (min-width: 1070px) {
	.nav-toggle-label {
		display: none;
	}
	
	header {
		display: grid;
		grid-template-columns: 1fr auto minmax(600px, 3fr) 1fr;
	}
	
	.logo {
		float: left;
		grid-column: 2 / 3;
	}
	
	nav {
		float: right;
		all: unset;
		grid-column: 3 / 4;
		display: flex;
		align-items: center;
	}
	
	nav ul {
		display: flex;
		justify-content: flex-end;
	}
	
	nav li {
		padding-top: 40px;
		margin-left: 3em;
		margin-bottom: 0;
	}
	
	nav a {
		opacity: 1;
		position: relative;
	}
	
	nav a::before {
		content: "";
		display: block;
		height: 5px;
		background: #5a5a5a;
		radius: 2px;
		position: absolute;
		top: -.75em;
		left: 0;
		right: 0;
		transform: scale(0, 1);
		transition: transform ease-in-out 250ms;
	}
	
	nav a:hover::before {
		transform: scale(1, 1);
	}
	
	section {
		padding: 6em 1em;
	}
	
	.btn-group {
		margin-top: 1em;
		flex-direction: row;
	}
	
	.btn + .btn {
		margin-left: 0.5em;
	}
	
	.about-us {
		flex-direction: row;
	}
	
	.about-us__intro,
	.about-us__body {
		flex: 0 1 50%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 4em 2em;
	}
	
	.about-us__intro {
		text-align: right;
	}
	
	.about-us__intro > * {
		max-width: 25rem;
		margin-left: auto;
	}
	
	.about-us__body {
		text-align: left;
	}
	
	.about-us__body > * {
		max-width: 25rem;
		margin-right: auto;
	}
	
	.order-online > * {
		max-width: 65ch;
		margin-left: auto;
		margin-right: auto;
	}
	
	.order-online {
		display: grid;
	}
	
	
}