/* Global Styles */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f5f5f5;
	color: #333;
}

h1, h2 {
	margin: 0;
}

/* Navbar */
.navbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	background: #222;
	padding: 15px 20px;
	color: #fff;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
}

/* Navigation Links */
.nav-links {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.nav-links li a {
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
}

/* Hamburger Menu */
.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 8px;
}

.hamburger span {
	height: 3px;
	width: 25px;
	background: #fff;
	margin-bottom: 5px;
	border-radius: 5px;
}

/* Hero Section */
.hero {
	position: relative;
	isolation: isolate;
	padding: 120px 20px;
	text-align: center;
	color: #fff;
	background-color: #333; /* fallback */
}

.hero::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background-image: url('images/kratos-training-logo.png');
	background-position: center;
	background-size: min(70vw, 380px) auto;
	background-repeat: no-repeat;
	content: "";
	opacity: 0.4;
	mix-blend-mode: multiply;
	pointer-events: none;
}

.hero h1,
.hero p,
.hero .btn {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 2.5rem;
}

.hero p {
	font-size: 1.2rem;
	margin: 10px 0 20px;
}

.hero .btn {
	display: inline-block;
	margin: 6px;
}

.btn {
	background: #ff6600;
	padding: 10px 20px;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
}

/* Content Sections */
.content {
	background: #fff;
	margin: 20px auto;
	padding: 20px;
	max-width: 900px;
	border-radius: 8px;
}

#lead-form {
	display: grid;
	gap: 10px;
	max-width: 420px;
	margin-top: 20px;
}

#lead-form input,
#lead-form select,
#lead-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	border: 1px solid #aaa;
	border-radius: 5px;
	font: inherit;
}

#lead-form textarea {
	resize: vertical;
}

.lead-next-step {
	margin-top: 24px;
	padding: 20px;
	border-left: 4px solid #ff6600;
	background: #fff4ec;
	border-radius: 5px;
}

.lead-next-step h3 {
	margin-top: 0;
}

.lead-next-step .btn {
	display: inline-block;
	margin-top: 8px;
}

.community-promo {
	background: #222;
	color: #fff;
}

.community-promo h2 {
	color: #ff8a3d;
	margin-bottom: 16px;
}

.community-promo-highlight {
	font-size: 1.15rem;
}

.community-promo .btn {
	display: inline-block;
	margin-top: 4px;
}

.business-logo {
	display: block;
	width: min(100%, 220px);
	height: auto;
	margin: 16px 0;
}

/* Calorie estimator */
#calorie-form,
#hydration-form,
#macro-form {
	display: grid;
	gap: 10px;
	max-width: 420px;
	margin-top: 20px;
}

#calorie-form input,
#calorie-form select,
#hydration-form input,
#hydration-form select,
#macro-form input,
#macro-form select {
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	border: 1px solid #aaa;
	border-radius: 5px;
	font: inherit;
}

.input-with-unit {
	display: flex;
	gap: 8px;
}

.input-with-unit select {
	width: auto;
}

.calculator-button {
	border: 0;
	font: inherit;
	cursor: pointer;
}

.calculator-result {
	font-weight: bold;
	margin-bottom: 8px;
}

.calculator-result ul {
	padding-left: 24px;
}

.calculator-note {
	font-size: 0.9rem;
	color: #555;
}

.faq-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 10;
}

.faq-chat > summary {
	list-style: none;
	cursor: pointer;
	padding: 12px 18px;
	border-radius: 24px;
	background: #ff6600;
	color: #fff;
	font-weight: bold;
	box-shadow: 0 2px 10px #0003;
}

.faq-chat > summary::-webkit-details-marker {
	display: none;
}

.faq-chat > summary:focus-visible,
.faq-chat-panel button:focus-visible,
.faq-chat-panel input:focus-visible {
	outline: 3px solid #222;
	outline-offset: 3px;
}

.faq-chat-panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: min(360px, calc(100vw - 40px));
	max-height: min(70vh, 560px);
	padding: 16px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 16px #0004;
}

.faq-chat-panel h2 {
	font-size: 1.25rem;
}

.faq-chat-panel > .calculator-note {
	margin: 8px 0;
}

.faq-chat-messages {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 80px;
	margin: 8px 0;
	overflow-y: auto;
}

.faq-chat-message {
	max-width: 90%;
	margin: 0;
	padding: 9px 11px;
	border-radius: 10px;
	font-size: 0.95rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.faq-chat-answer {
	align-self: flex-start;
	background: #f1f1f1;
}

.faq-chat-question {
	align-self: flex-end;
	background: #fff0e5;
}

#faq-chat-form {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

#faq-chat-form input {
	box-sizing: border-box;
	min-width: 0;
	flex: 1;
	padding: 10px;
	border: 1px solid #aaa;
	border-radius: 5px;
	font: inherit;
}

#faq-chat-form button {
	padding: 10px 14px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Footer */
footer {
	text-align: center;
	padding: 20px;
	background: #222;
	color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero .btn {
		display: block;
		width: fit-content;
		max-width: 100%;
		box-sizing: border-box;
		margin: 10px auto;
	}

	/* Show hamburger */
	.hamburger {
		display: flex;
	}

	/* Hide nav links initially */
	.nav-links {
		display: none;
		flex-direction: column;
		background: #222;
		width: 100%;
		box-sizing: border-box;
		padding: 20px 0;
		text-align: center;
	}

	/* Show when active */
	.nav-links.active {
		display: flex;
	}
}
