/* 
   Hiking Arkansas Website
   Author: Mitchell Martin
   Date: November 4, 2025
   
   Filename: style.css
   Component-specific styles and layout
   
   Color Palette:
   - Forest Green: #2c5f2d
   - Sky Blue: #87ceeb
   - Light Green: #e8f5e9
   - Charcoal: #333
   - Dark Green: #1a3a1a
*/

@charset "utf-8";

/* ===== HEADER COMPONENT ===== */
header {
	background-color: white;
	padding: 12px 20px;
	border-bottom: 3px solid #2c5f2d;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo title menu";
	align-items: center;
}

header a {
	grid-area: logo;
}

header img {
	height: 50px;
	width: auto;
	border-radius: 8px;
	transition: opacity 0.3s ease;
}

header a:hover img {
	opacity: 0.8;
}

header h1 {
	grid-area: title;
	text-align: center;
	margin: 0;
	font-size: 1.5em;
	color: #2c5f2d;
	font-family: Georgia, serif;
}

/* ===== MENU BUTTON ===== */
#menuBtn {
	grid-area: menu;
	width: 40px;
	height: 40px;
	background: none;
	border: 2px solid #333;
	cursor: pointer;
	padding: 4px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	grid-gap: 2px;
	border-radius: 8px;
	transition: border-color 0.3s ease;
}

#menuBtn:hover {
	border-color: #2c5f2d;
}

#menuBtn span {
	width: 100%;
	height: 100%;
	background-color: #333;
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

#menuBtn:hover span {
	background-color: #2c5f2d;
}

/* ===== NAVIGATION MENU ===== */
#mainNav {
	position: absolute;
	top: 80px;
	right: 20px;
	background-color: white;
	border: 2px solid #2c5f2d;
	padding: 15px;
	display: none;
	z-index: 100;
	box-shadow: 4px 4px 15px rgba(51, 51, 51, 0.3);
	border-radius: 12px;
}

#mainNav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 8px;
}

#mainNav ul li {
	border: 1px solid #2c5f2d;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

#mainNav ul li:hover {
	border-color: #87ceeb;
}

#mainNav ul li a {
	display: block;
	padding: 15px 5px;
	color: #333;
	text-decoration: none;
	font-size: 13px;
	text-align: center;
	transition: all 0.3s ease;
}

#mainNav ul li a:hover {
	background-color: #2c5f2d;
	color: white;
}

/* ===== HERO SECTION ===== */
#hero {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
	margin: 0;
	padding: 0;
	background-color: #2c5f2d;
}

#hero img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

#hero section,
#hero div {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 30px 50px;
	border-radius: 12px;
	max-width: 600px;
	width: 90%;
}

#hero h2 {
	font-size: 2em;
	margin: 0 0 20px 0;
	color: white;
}

#hero p {
	font-size: 1.1em;
	margin: 0;
}

/* Hero Search Form */
#hero form {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-gap: 10px;
	margin-top: 20px;
}

#hero input[type="search"] {
	padding: 12px 15px;
	font-size: 1em;
	border: 2px solid white;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.9);
	color: #333;
	transition: all 0.3s ease;
}

#hero input[type="search"]:focus {
	outline: none;
	background-color: white;
	border-color: #87ceeb;
}

#hero input[type="submit"] {
	padding: 12px 25px;
	font-size: 1em;
	background-color: #2c5f2d;
	color: white;
	border: 2px solid #2c5f2d;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
}

#hero input[type="submit"]:hover {
	background-color: #87ceeb;
	border-color: #87ceeb;
	color: #333;
}

/* ===== MAIN CONTENT WRAPPER ===== */
#contentWrapper {
	max-width: 1200px;
	margin: 30px auto;
	padding: 20px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 30px;
}

/* ===== ARTICLE CARDS ===== */
article {
	background-color: white;
	padding: 20px;
	border: 2px solid #2c5f2d;
	box-shadow: 0px 4px 15px rgba(51, 51, 51, 0.2);
	border-radius: 12px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
	box-shadow: 0px 8px 25px rgba(101, 101, 101, 0.3);
	transform: translateY(-10px);
}

article h2 {
	margin-top: 0;
	color: #2c5f2d;
	font-size: 1.5em;
	border-bottom: 1px solid #2c5f2d;
	padding-bottom: 10px;
}

article h3 {
	color: #2c5f2d;
	font-size: 1.2em;
	margin: 15px 0 10px 0;
}

article img {
	width: 100%;
	height: 200px;
	margin: 15px 0;
	border-radius: 8px;
	object-fit: cover;
}

article p {
	line-height: 1.6;
	color: #333;
}

article ol,
article ul {
	line-height: 1.8;
	color: #333;
	margin: 15px 0;
	padding-left: 25px;
}

article a {
	display: block;
	margin-top: 10px;
	padding: 10px 20px;
	background-color: #2c5f2d;
	color: white;
	text-decoration: none;
	text-align: center;
	border-radius: 8px;
	transition: all 0.3s ease;
}

article a:hover {
	background-color: #87ceeb;
	color: #333;
	transform: scale(1.02);
}

/* ===== FOOTER ===== */
footer {
	background-color: #2c5f2d;
	color: white;
	text-align: center;
	padding: 20px;
	margin-top: 40px;
	border-top: 3px solid #1a3a1a;
	clear: both;
}

footer p {
	margin: 10px 0;
	font-family: Georgia, serif;
}

footer nav {
	margin-top: 10px;
	background-color: transparent;
	line-height: 1.8;
}

footer a {
	color: white;
	text-decoration: none;
	transition: color 0.3s ease;
}

footer a:hover {
	color: #87ceeb;
}

/* ===== CONTACT FORM ===== */
#contactForm {
	background-color: white;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	max-width: 100%;
}

#contactForm h2 {
	margin-top: 0;
}

#contactForm p {
	color: #666;
	margin-bottom: 25px;
}

#contactForm form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

#contactForm label {
	color: #2c5f2d;
	font-weight: bold;
	margin-bottom: 8px;
	margin-top: 20px;
	display: block;
	font-size: 0.95em;
}

#contactForm label:first-of-type {
	margin-top: 0;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm select,
#contactForm textarea {
	width: 100%;
	padding: 0.875em 1.125em;
	border: 2px solid #ccc;
	border-radius: 8px;
	font-family: Aptos, Arial, sans-serif;
	font-size: 1em;
	color: #333;
	background-color: #fafafa;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
	outline: none;
	border-color: #2c5f2d;
	background-color: white;
	box-shadow: 0 0 8px rgba(44, 95, 45, 0.15);
}

#contactForm select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 1em center;
	background-size: 1.25em;
	padding-right: 2.8em;
}

#contactForm textarea {
	resize: vertical;
	min-height: 150px;
	font-family: Aptos, Arial, sans-serif;
	line-height: 1.5;
}

#contactForm button {
	padding: 1em 1.875em;
	border: none;
	border-radius: 8px;
	font-size: 1.05em;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: Aptos, Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	box-sizing: border-box;
}

#contactForm button[type="submit"] {
	background-color: #2c5f2d;
	color: white;
	margin-top: 30px;
	box-shadow: 0 4px 10px rgba(44, 95, 45, 0.3);
}

#contactForm button[type="submit"]:hover {
	background-color: #1a3a1a;
	box-shadow: 0 6px 15px rgba(44, 95, 45, 0.4);
	transform: translateY(-2px);
}

#contactForm button[type="reset"] {
	background-color: transparent;
	color: #2c5f2d;
	border: 2px solid #2c5f2d;
	margin-top: 12px;
}

#contactForm button[type="reset"]:hover {
	background-color: #2c5f2d;
	color: white;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
	#contentWrapper {
		grid-template-columns: 1fr;
		padding: 15px;
		grid-gap: 20px;
	}
	
	#mainNav ul {
		grid-template-columns: 1fr;
		grid-gap: 5px;
	}
	
	#mainNav {
		right: 10px;
		left: 10px;
		width: auto;
	}
	
	#hero {
		height: 350px;
	}
	
	#hero section,
	#hero div {
		padding: 20px 30px;
		width: 85%;
	}
	
	#hero h2 {
		font-size: 1.5em;
	}
	
	header {
		padding: 10px 15px;
	}
	
	header h1 {
		font-size: 1.3em;
	}
	
	header img {
		height: 40px;
	}
	
	article img {
		height: 180px;
	}
	
	footer nav {
		line-height: 2;
	}
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
	#hero {
		height: 250px;
	}
	
	#hero section,
	#hero div {
		padding: 15px 20px;
		width: 90%;
	}
	
	#hero h2 {
		font-size: 1.2em;
		margin-bottom: 10px;
	}
	
	#hero form {
		grid-template-columns: 1fr;
	}
	
	#hero input[type="search"],
	#hero input[type="submit"] {
		padding: 10px;
		font-size: 0.9em;
	}
	
	header h1 {
		font-size: 1.1em;
	}
	
	header img {
		height: 35px;
	}
	
	#menuBtn {
		width: 35px;
		height: 35px;
	}
	
	article {
		padding: 15px;
	}
	
	article h2 {
		font-size: 1.3em;
	}
	
	article img {
		height: 150px;
	}
	
	article a {
		padding: 8px 15px;
		font-size: 0.9em;
	}
	
	footer {
		padding: 15px 10px;
		font-size: 0.85em;
	}
	
	footer nav {
		line-height: 2.2;
		font-size: 0.85em;
	}
	
	footer p {
		font-size: 0.9em;
	}
	
	#contentWrapper {
		padding: 10px;
		margin: 15px auto;
	}
}

/* Very Small Phones (360px and below) */
@media (max-width: 360px) {
	header h1 {
		font-size: 0.95em;
	}
	
	#hero {
		height: 200px;
	}
	
	#hero h2 {
		font-size: 1em;
	}
	
	article h2 {
		font-size: 1.2em;
	}
	
	footer nav {
		font-size: 0.75em;
	}
}

