@import url("./font-faces.css");

:root {
	--primary-color: skyblue;
	--secondary-color: lemonchiffon;
	--text-color: #333333;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 1rem);
}

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

body {
	background-attachment: fixed;
	background-image: url("./space.jpg");
	background-position: bottom;
	background-size: cover;
	display: grid;
	grid-template-areas: "header" "main" "footer";
	gap: 1rem;
}

body,
h1,
h3 {
	margin: 0;
}

button,
.cta {
	background-color: var(--secondary-color);
	border-radius: 8px;
	border: none;
	box-shadow: 1px 1px 2px var(--text-color);
	color: var(--text-color);
	cursor: pointer;
	font-size-adjust: 0.6;
	padding: 5px 10px;
	text-align: center;
	text-decoration: none;
}

.cta {
	background-color: var(--primary-color);
	font-size: 1.2rem;
	font-weight: bold;
	padding: 10px 20px;
}

button:hover,
button:focus,
.cta:hover,
.cta:focus {
	box-shadow: 1px 1px 10px var(--text-color);
	outline: 0;
}

.mobile-hidden {
	display: none;
}

@media (min-width: 768px) {
	.mobile-hidden {
		display: block;
	}
}

#banho-e-tosa::before {
	background-image: url("./banho-tosa.png");
}

#vet::before {
	background-image: url("./vet.jpg");
}

#pet-shop::before {
	background-image: url("./pet-shop.jpg");
}

.services {
	background-color: var(--primary-color);
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	gap: 1rem;
	width: 100%;
}

.services > .card {
	aspect-ratio: 16 / 9;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	position: relative;
	text-align: center;
	text-shadow: 2px 2px 1px white;
	z-index: 1;
}

@media (min-width: 768px) {
	.services > .card {
		aspect-ratio: 32 / 9;
	}
}

.services > .card::before {
	background-position: 0 20%;
	background-size: cover;
	border-radius: 24px;
	content: " ";
	height: 100%;
	left: 0;
	opacity: 0.7;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: -1;
}

header {
	background-color: var(--primary-color);
	box-shadow: 2px 2px 2px var(--secondary-color);
	grid-area: header;
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 3;
}

header > div {
	display: flex;
	flex-direction: column;
	grid-area: header;
}

@media (min-width: 768px) {
	header > div {
		flex-direction: row;
		justify-content: space-between;
	}
}

header nav > ul {
	display: flex;
	justify-content: space-between;
	text-decoration: none;
}

@media (min-width: 768px) {
	header nav > ul {
		gap: .5rem;
		justify-content: flex-end;
	}
}

header nav > ul > li > a {
	color: var(--text-color);
	text-decoration: none;
}

header nav > ul > li > a:hover {
	text-shadow: 2px 2px 2px var(--secondary-color);
}

header .title > h1 {
	text-shadow: 2px 2px 2px var(--secondary-color);
}

header .title {
	display: flex;
	flex-direction: column;
}

main {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	grid-area: main;
	padding: 1rem;
}

.no-wrap {
	white-space: nowrap;
}

footer {
	background-color: var(--primary-color);
}

.about {
	display: flex;
	flex-direction: column;
}

.about > ul.cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding-inline-start: 0;
}

@media (min-width: 768px) {
	.about > ul.cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.about > ul.cards > li {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	text-align: center;
}

ul.cards .amount {
	font-size: 3rem;
	font-weight: bolder;
}

.container {
	width: clamp(320px, 90%, 1024px);
	margin: 0 auto;
	padding: 0;
}

.font-montserrat {
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
}

.font-open-sans {
	font-family: "Open Sans", sans-serif;
	font-optical-sizing: auto;
	font-variation-settings: "wdth" 100;
}

.font-style-italic {
	font-style: italic;
}

.font-weight-bold {
	font-weight: bold;
}

.justify {
	text-align: justify;
}

.center {
	text-align: center;
}

.hero .content {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	height: 100%;
	text-align: center;
}

@media (min-width: 768px) {
	.hero .content {
		width: 60%;
	}
}

.card {
	background-color: var(--secondary-color);
	border-radius: 24px;
	color: var(--text-color);
	padding: 1rem;
}

@media (min-width: 768px) {
	.card {
		padding: 2rem;
	}
}

.hero {
	position: relative;
	width: 100%;
}

@media (min-width: 768px) {
	.hero {
		aspect-ratio: 16 / 9;
	}
}

.hero > img {
	bottom: 0;
	width: 50%;
	position: absolute;
	right: 0;
}

footer > form {
	display: grid;
	grid-template-columns: 1fr;
}

input,
select,
textarea {
	background-color: var(--secondary-color);
	border: none;
	border-radius: 8px;
	box-shadow: 1px 1px 2px var(--text-color);
	color: var(--text-color);
	margin-bottom: 1rem;
	padding: 5px 10px;
	font-size-adjust: 0.6;
}

input:invalid,
select:invalid,
textarea:invalid {
	outline: 2px solid red;
}

input:focus,
select:focus,
textarea:focus {
	border: 0;
	box-shadow: 1px 1px 10px var(--text-color);
	outline: 0;
}

button {
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	input,
	select,
	textarea {
		margin: 0;
	}

	footer > form {
		display: grid;
		grid-template-columns: 1fr 2fr;
		gap: 1rem;
	}

	form > label::after {
		content: ":";
	}
}
