/* CSS RESET */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* GENERAL STYLING */
body {
	font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
	line-height: 1.6;
	font-size: 1rem;
	background-color: aliceblue;
	color: #1d1d1d;
	width: 90%;
	margin: 0 auto;
	max-width: 1200px;
}

/* NAVIGATION */
nav {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 2rem;
   margin: 3rem;

 }
 
 nav a {
   text-decoration: none;
   font-weight: 500;
   color: #01456e;
   font-size: clamp(1.4rem, 2vw, 1.6rem);
   transition: color 0.3s ease;
 }
 
 nav a:hover,
 nav a:focus {
   color: #27323d;
   text-decoration: underline;
 }
 
.sidebar {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: 40%;
	z-index: 999;
	backdrop-filter: blur(10px);
	background-color: #f8f1e9;
	box-shadow: -2px 0 10px #1d1d1d50;
	display: none;
	flex-direction: column;
	align-items: flex-start;
	padding-right: 1rem;
}
.sidebar li {
	width: 100%;
	margin-left: 1rem;
}
.sidebar li:first-child {
	margin-top: 3rem;
}
.sidebar a {
	width: 100%;
	font-size: 1.2rem;
	font-weight: 500;
	color: #013046;
	text-decoration: none;
	padding: 1rem 0;
	display: block;
}
.sidebar a:hover {
	color: #4a5053;
}
.nav-toggle {
	position: absolute;
	cursor: pointer;
	top: 1rem;
	right: 1rem;
	z-index: 1000;
	display: none;
}
svg {
	fill: #013046;
	width: 3rem;
}
.close {
	display: none;
}
.menu {
	margin-top: 0.2rem;
}
#nav-responsive {
	display: none;
}
#nav-responsive:checked ~ .sidebar {
	display: flex;
}
#nav-responsive:checked ~ label.nav-toggle .close {
	display: block;
}
#nav-responsive:checked ~ label.nav-toggle .menu {
	display: none;
}

/* HERO SECTION */
.hero {
	display: flex;
	flex-wrap: wrap;
	gap: 4rem;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem 6rem;
}
.hero > div h1 span {
	text-transform: uppercase;
}
.hero > div {
	flex: 1;
	text-align: left;
}
.hero > div h1,
.hero > div p {
	margin: 0 0 1rem 0;
}
.hero img {
	flex: 1;
	max-width: 100%;
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 20rem 10rem 0rem;
	padding-top: 4rem;
	padding-right: 2rem;
}
.hero h1 {
	font-family: 'Poppins', Arial, sans-serif;
	font-size: clamp(2.5rem, 6vw, 5rem);
	line-height: 1.4;
	font-weight: bolder;
	padding-top: 2rem;
   text-align: center;
}
.hero p {
	padding-top: 1.2rem;
	font-size: clamp(1.4rem, 2vw, 2rem);
   text-align: center;
}

.hero-text {
   width: 80%;
   margin: 0 auto;
}

/* MAIN SECTIONS */
main {
	margin-top: 4rem;
	display: grid;
	gap: 4rem;
	padding: 0 2rem 4rem;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}
section {
	background-color: #fff;
	padding: 3rem;
	border-radius: 0.75rem;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	margin-bottom: 2rem;
}
section h2 {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	color: #01456e;
	margin-bottom: 2rem;
}
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}
.card {
	display: block;
	background-color: #4a7ca7;
	color: #fff;
	text-decoration: none;
	padding: 1.5rem;
	border-radius: 0.5rem;
	transition: background 0.3s;
	text-align: center;
	font-size: clamp(1rem, 1.1vw, 1.2rem);
}
.card:hover, .card:focus {
	background-color: #27323d;
}

/* RESPONSIVE */
@media (max-width: 800px) {
	.hero {
		flex-direction: column;
		text-align: center;
		padding: 3rem 1rem 4rem;
	}
	.hero img {
		max-width: 60%;
		margin-top: 0;
		padding-top: 0;
		padding-bottom: 0;
	}
	.hero > div {
		text-align: center;
	}
	main {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 790px) {
	.nav-toggle {
		display: block;
		margin-top: 2rem;
	}
	.sidebar {
		display: none;
		width: 90%;
	}
	.main-nav {
		display: none;
	}
}

@media (min-width: 791px) {
	.sidebar {
		display: none;
	}
	.nav-toggle {
		display: none;
	}
	.main-nav {
		display: flex;
	}
	.sidebar li {
		display: flex;
		flex-direction: row;
		margin-top: 0.5rem;
		padding: .5rem;
		justify-content: flex-end;
		white-space: nowrap;
	}
}
