:root {
	font-family: "Open Sans", sans-serif;

	--contact-btn-color: #a03b3b;
	--text-shadow: 0.125em 0.125em 0.1125em hsla(0, 0%, 0%, 0.5);
	--mid-shadow: 0.25em 0.25em 0.25em hsla(0, 0%, 0%, 0.5);

	scroll-behavior: smooth;
}

/* css reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
	font: inherit;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
}

button {
	cursor: pointer;
}
/* end css reset */

/* width */
::-webkit-scrollbar {
	width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
	background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #555;
}
* {
	scrollbar-color: #888 #555;
	scrollbar-width: thin;
}

p {
	line-height: 1.6em;
	text-indent: 2rem;
}

a {
	color: inherit;
	text-decoration: none;
}

.line {
	width: 100%;
	height: 4px;
	border-radius: 999vmax;
	background-color: hsla(234, 70%, 50%, 1);
}

.contact-btn {
	display: block;
	width: max-content;
	text-decoration: none;
	background-color: var(--contact-btn-color);
	font-weight: 700;
	color: white;
	border: none;
	padding: 0.95em 1.25em;
	border-radius: 0.5em;
	box-shadow: var(--mid-shadow);
}

.contact-btn:hover {
	filter: brightness(110%);
}

header {
	color: white;
	background: linear-gradient(
			180deg,
			rgba(118, 131, 243, 0) 0%,
			rgba(89, 97, 169, 0.2) 37.24%,
			rgba(16, 29, 149, 0.6) 88.54%,
			rgba(16, 29, 149, 0.8) 93.75%,
			#1e277b 100%
		),
		url("/assets/kansas-bg.webp"), lightgray 50% / cover no-repeat;

	background-repeat: no-repeat;
	background-size: cover;
	display: grid;
	min-height: 90vh;
	place-content: center;
}

.header-content {
	width: min(calc(100% - 5rem), 1200px);
	margin-inline: auto;
}

.header-title {
	display: grid;
	max-width: 35em;
	gap: 0.5em;
}

.header-title h1 {
	font-size: 4rem;
	font-weight: bold;
	text-shadow: var(--text-shadow);
}

.header-title h2 {
	font-size: 1.5rem;
	font-weight: bold;
	text-shadow: var(--text-shadow);
}

.header-title p {
	text-shadow: var(--text-shadow);
	text-indent: 0;
}

.header-about {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto;
	width: 100%;
	align-content: center;
	padding-block: 2em;
	gap: 5vw;
}

.header-box {
	background-color: #747474;
	padding: 1.5em;
	border-radius: 1em;
	display: flex;
	flex-direction: column;
	gap: 1em;
	box-shadow: var(--mid-shadow);
	transition: scale 75ms ease-in-out;
}

.header-box p {
	text-indent: 0;
	line-height: 1.85em;
}

.header-box h2 {
	font-size: 1.5rem;
	font-weight: 700;
}

.header-box:is(.dark) {
	background-color: #222;
}

.header-box:is(.light) {
	background-color: #cbcbcb;
	color: black;
}

.wave-svg {
	position: relative;
	width: 100%;
}

.about-section {
	display: grid;
	grid-template-columns: 3fr 2fr;
	width: clamp(0px, calc(100% - 2.5rem), 1200px);
	gap: 2em;
	margin-inline: auto;
	margin-block: 4rem;
	place-items: center;
}

.about-content {
	margin-block: 1em;
	grid-column: 1;
	display: grid;
	gap: 1rem;
}

.about-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
}

.about-content h3 {
	font-size: 2rem;
	font-weight: 700;
}

.about-image {
	border-radius: 0.5rem;
}

.tax-returns {
	background: #d4d7f7;
}

.tax-returns-content {
	display: flex;
	margin-inline: auto;
	width: clamp(0px, calc(100% - 5rem), 1200px);
	padding: 3em 1em;
	justify-content: space-between;
	align-items: center;
}

.tax-returns-title {
	text-align: center;
	font-size: 1.25rem;
	font-weight: 600;
}

.tax-returns-count {
	font-size: 4rem;
	font-family: "ubuntu", monospace;
	font-weight: 500;
	color: #2838d7;
}

.experts-section {
	display: grid;
	width: clamp(0px, calc(100% - 2.5rem), 900px);
	gap: 2em;
	margin-inline: auto;
	margin-block: 4em;
}

.experts-title {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 1em;
}

.experts-title .line {
	width: clamp(200px, 100%, 600px);
}

.experts-title h2 {
	font-size: 1.5rem;
	font-weight: 700;
}

.experts-title h3 {
	font-size: 2rem;
	font-weight: 700;
}

.expert-pictures {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4em;
}

.expert-picture {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.expert-picture h3 {
	font-size: 1.5rem;
	font-weight: 600;
}

.expert-picture img {
	border-radius: 0.5em;
	margin-bottom: 1em;
}

footer {
	background-color: #282828;
	color: white;
}

.contact-txt {
	text-align: center;
	padding-block: 1.5em 4em;
}

.contact-txt h2 {
	font-size: 2.25rem;
	font-weight: 700;
	padding: 0.5rem;
}

.contact-links {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	max-width: 900px;
	margin-inline: auto;
	justify-items: center;
	padding-bottom: 4em;
}

.contact-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 11rem;
	text-align: center;
}

.contact-link img {
	padding: 1em;
	border-radius: 999vmax;
	background: #2838d7;
}

.contact-link:hover img {
	filter: brightness(150%);
}

.designed-by {
	background: #1f1f1f;
	text-align: center;
	padding: 0.75rem;
}

.designed-by a:hover {
	text-decoration-line: underline;
}

@media (prefers-reduced-motion: no-preference) {
	.header-title {
		animation: slide-fade-in 750ms ease-in-out forwards;
		opacity: 0;
		translate: -100% 0%;
	}

	.header-box {
		opacity: 0;
		translate: -100% 0%;
		animation: slide-fade-in 500ms ease-in-out forwards;
	}

	.header-box:nth-child(1) {
		animation-delay: 500ms;
	}

	.header-box:nth-child(2) {
		animation-delay: 750ms;
	}

	.header-box:nth-child(3) {
		animation-delay: 1000ms;
	}
}

@media (max-width: 800px) {
	.header-title {
		padding-top: 2.5rem;
		display: flex;
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.header-title h1 {
		font-size: 3rem;
	}

	.header-about {
		grid-template-columns: auto;
		margin-inline: auto;
		align-content: center;
		justify-content: center;
	}

	.header-box {
		width: 100%;
		aspect-ratio: auto;
	}

	.about-section {
		margin-block: 2rem;
		grid-template-columns: auto;
	}

	.about-content :is(h2, h3) {
		text-align: center;
	}

	.tax-returns-content {
		flex-direction: column;
		gap: 2em;
	}

	.expert-pictures {
		grid-template-columns: auto;
	}

	.contact-links {
		grid-template-columns: repeat(2, 1fr);
	}
}

@keyframes slide-fade-in {
	100% {
		opacity: 100%;
		translate: 0% 0%;
	}
}
