/* Topanga Plumbing — static site styles */

@font-face {
	font-family: "Coda";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/coda-400.woff2") format("woff2");
}
@font-face {
	font-family: "Coda";
	font-style: normal;
	font-weight: 700 900;
	font-display: swap;
	src: url("../fonts/coda-800.woff2") format("woff2");
}
@font-face {
	font-family: "Noto Sans";
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("../fonts/notosans.woff2") format("woff2");
}

:root {
	--color-primary: #ffffff;
	--color-secondary: #008ad8;
	--color-text: #001440;
	--color-accent: #78be21;
	--font-heading: "Coda", sans-serif;
	--font-body: "Noto Sans", sans-serif;
	--content-max: 1140px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 2%;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	color: var(--color-primary);
	background-image: url("../images/topanga-hills.jpg");
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #000;
	color: #fff;
	padding: 0.5em 1em;
	z-index: 100;
}
.skip-link:focus {
	left: 0;
}

h1, h2, h3 {
	font-family: var(--font-heading);
	font-weight: 500;
	text-transform: uppercase;
	margin: 0;
	color: var(--color-primary);
}

a {
	color: var(--color-primary);
	text-decoration: none;
}
a:hover,
a:focus {
	color: var(--color-secondary);
}

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

p {
	margin: 0 0 1em;
}

/* Header */

.site-header {
	max-width: var(--content-max);
	margin: 0 auto 1.5rem;
}

.header-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	gap: 0.5rem;
}

.site-title {
	font-size: 4rem;
	font-weight: 500;
	text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}
.site-title a {
	color: var(--color-primary);
}
.site-title a:hover {
	color: var(--color-secondary);
}

.site-nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2rem;
}

.site-nav a {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	padding-bottom: 0.2rem;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus {
	border-color: var(--color-secondary);
}

/* Hero */

.hero {
	max-width: 800px;
	margin: 0 auto 3rem;
	text-align: center;
}

.hero__text {
	font-size: 2.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
	margin: -2% 0 0;
}

.hero__license {
	font-size: 1.1rem;
	font-weight: 400;
	text-shadow: 2px 2px 1px #000000;
}

/* Services */

.services {
	max-width: var(--content-max);
	margin: 0 auto 3rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 10px;
}

.services__copy {
	flex: 1 1 58%;
	max-width: 800px;
}

.services__copy h2 {
	font-size: 2rem;
}

.services__copy .subhead {
	font-size: 1.3rem;
	margin-top: 1rem;
}

.services__copy .tagline {
	font-size: 1.1rem;
	text-transform: none;
	font-family: var(--font-body);
	font-weight: 500;
	margin-top: 0.5rem;
}

.services-list {
	font-family: var(--font-body);
	font-weight: 400;
	text-shadow: 2px 2px 1px #000000;
	margin-top: 1rem;
}

.services-list li {
	list-style: disc;
	margin-left: 1.25rem;
	margin-bottom: 0.35rem;
}

.services-list--secondary {
	margin-top: 0.5rem;
}

.services__image {
	flex: 1 1 40%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.services__image img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* About */

.about {
	max-width: var(--content-max);
	margin: 0 auto 3rem;
}

.about h2 {
	font-size: 2rem;
}

.about .subhead {
	font-size: 1.3rem;
	margin-top: 1rem;
}

.about-list {
	font-family: var(--font-body);
	font-weight: 400;
	text-shadow: 2px 2px 1px #000000;
	margin-top: 1rem;
}

.about-list li {
	list-style: disc;
	margin-left: 1.25rem;
	margin-bottom: 0.75rem;
}

/* Footer */

.site-footer {
	max-width: var(--content-max);
	margin: 0 auto;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem;
}

.footer-col {
	flex: 1 1 300px;
	font-family: var(--font-body);
	font-weight: 400;
	text-shadow: 2px 2px 1px #000000;
}

/* Responsive */

@media (max-width: 1024px) {
	.site-title {
		font-size: 3rem;
	}
}

@media (max-width: 767px) {
	body {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	.services {
		flex-direction: column;
	}
	.services__copy,
	.services__image {
		max-width: 100%;
	}
	.hero__text {
		font-size: 1.5rem;
	}
	.site-title {
		font-size: 3rem;
	}
	.site-nav a {
		font-size: 1rem;
	}
	.footer-inner {
		justify-content: center;
		text-align: center;
	}
}
