@charset "utf-8";

/* ===== Reset & Base ===== */
*, *::before, *::after {
box-sizing: border-box;
}
body {
margin: 0;
color: #1a1a2e;
font-family: "Segoe UI", "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
background-color: #eef2f7;
}

/* ===== Wrapper ===== */
#wrapper {
width: 100%;
max-width: 1080px;
margin: 0 auto;
background-color: #ffffff;
box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

/* ===== Header & Banner ===== */
#top {
overflow: hidden;
}
#banner {
background-color: #1a1a2e;
}
#wrapper #top h1 {
background-color: #1a1a2e;
padding: 16px 0;
margin: 0;
text-align: center;
}
#wrapper #top h1 img {
max-width: 100%;
height: auto;
}

/* ===== Main Navigation ===== */
#mainnav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
#mainnav li {
flex: 1;
}
#mainnav a {
display: block;
text-align: center;
text-transform: uppercase;
font-size: 0.85em;
font-weight: 600;
letter-spacing: 0.5px;
padding: 10px 8px;
color: #ccd6e0;
background-color: #16213e;
text-decoration: none;
transition: background-color 0.2s ease, color 0.2s ease;
border-right: 1px solid rgba(255,255,255,0.05);
}
#mainnav li:last-child a {
border-right: none;
}
#mainnav a:hover, #mainnav a:active, #mainnav a:focus {
background-color: #0f3460;
color: #ffffff;
}
#mainnav a.thispage {
background-color: #0f3460;
color: #ffffff;
border-bottom: 3px solid #e94560;
}

/* ===== Sub Navigation (InKey pages) ===== */
#subnav {
background-color: #f0f4f8;
border-bottom: 2px solid #dde4ec;
}
#subnav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
#subnav li {
margin: 0;
}
#subnav a {
display: block;
padding: 8px 24px;
font-size: 0.85em;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
color: #16213e;
text-decoration: none;
transition: background-color 0.2s ease, color 0.2s ease;
}
#subnav a:hover, #subnav a:active, #subnav a:focus {
background-color: #dde4ec;
color: #0f3460;
}
#subnav a.thispage {
background-color: #0f3460;
color: #ffffff;
}

/* ===== Typography ===== */
h1 {
font-size: 2.5em;
margin: 0;
text-align: center;
text-transform: uppercase;
}
h1, h2, h3 {
font-family: "Segoe UI", Arial, Helvetica, sans-serif;
font-weight: 600;
color: #0f3460;
}
h2 {
margin-top: 1.2em;
margin-bottom: 0.5em;
font-size: 1.6em;
border-bottom: 2px solid #e8ecf1;
padding-bottom: 0.3em;
}
h3 {
margin-top: 1em;
margin-bottom: 0.4em;
font-size: 1.15em;
color: #16213e;
}

/* ===== Main Content Area ===== */
#main {
margin: 0 3%;
padding-bottom: 2em;
}

/* ===== Two-Column Layout ===== */
#mainleft {
width: 58%;
margin-left: 3%;
float: left;
padding-bottom: 2em;
}
#sidebar {
width: 32%;
float: left;
margin-left: 4%;
padding-bottom: 2em;
}

/* ===== Links ===== */
a {
font-weight: 600;
text-decoration: none;
transition: color 0.2s ease;
}
a:link {
color: #e94560;
}
a:visited {
color: #c23152;
}
a:hover, a:active, a:focus {
color: #0f3460;
text-decoration: underline;
}

/* ===== Footer ===== */
footer {
padding: 14px 3%;
background-color: #1a1a2e;
color: #8892a4;
clear: both;
font-size: 0.85em;
}
footer p {
margin: 0;
}

/* ===== Service Cards ===== */
.service-list {
list-style: none;
padding: 0;
margin: 1em 0;
}
.service-list li {
padding: 8px 0 8px 28px;
position: relative;
border-bottom: 1px solid #f0f4f8;
}
.service-list li:last-child {
border-bottom: none;
}
.service-list li::before {
content: "\25B8";
color: #e94560;
font-weight: bold;
position: absolute;
left: 8px;
}

.product-list {
list-style: none;
padding: 0;
margin: 1em 0;
}
.product-list li {
padding: 6px 0 6px 28px;
position: relative;
}
.product-list li::before {
content: "\2022";
color: #0f3460;
font-weight: bold;
position: absolute;
left: 8px;
font-size: 1.2em;
}

/* ===== Feature List ===== */
.feature-list {
list-style: none;
padding: 0;
margin: 1em 0;
}
.feature-list li {
padding: 12px 16px 12px 20px;
margin-bottom: 8px;
background-color: #f8fafc;
border-left: 4px solid #0f3460;
border-radius: 0 4px 4px 0;
line-height: 1.5;
}

/* ===== Sidebar Box ===== */
.sidebar-box {
background-color: #f0f4f8;
border-radius: 6px;
padding: 20px;
margin-bottom: 20px;
border: 1px solid #dde4ec;
}
.sidebar-box h3 {
margin-top: 0;
color: #0f3460;
}
.sidebar-box ul {
padding-left: 18px;
margin-bottom: 0;
}

/* ===== Tables (Downloads) ===== */
table {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
}
table td, table th {
padding: 10px 14px;
border: 1px solid #dde4ec;
text-align: left;
}
table tr:nth-child(even) {
background-color: #f8fafc;
}
table tr:hover {
background-color: #eef2f7;
}

/* ===== Contact Info ===== */
.contact-info {
background-color: #f0f4f8;
border-radius: 6px;
padding: 30px;
margin: 1.5em 0;
text-align: center;
border: 1px solid #dde4ec;
}
.contact-info p {
font-size: 1.1em;
margin: 0.5em 0;
}
.email-reveal {
display: inline-block;
padding: 12px 28px;
background-color: #0f3460;
color: #ffffff !important;
border-radius: 4px;
font-weight: 600;
margin-top: 10px;
cursor: pointer;
transition: background-color 0.2s ease;
border: none;
font-size: 1em;
}
.email-reveal:hover {
background-color: #e94560;
text-decoration: none !important;
color: #ffffff !important;
}

/* ===== Figures ===== */
figure {
display: block;
max-width: 420px;
}
figure img {
padding: 10px;
box-shadow: 1px 1px 15px rgba(0,0,0,0.1);
border-radius: 4px;
}
figcaption {
font-size: 0.875em;
font-weight: bold;
text-align: center;
display: block;
margin-top: 0.5em;
}

/* ===== Utility Classes ===== */
.centered {
margin-left: auto;
margin-right: auto;
}
.floatleft {
float: left;
margin-left: 0;
margin-right: 10px;
}
.floatright {
float: right;
margin-left: 10px;
margin-right: 0;
}
.clearfix::after {
content: "";
display: table;
clear: both;
}

/* ===== Hero Overlay ===== */
#hero img {
max-width: 100%;
}
#hero {
position: relative;
}
#hero article {
width: 36%;
padding: 10px;
position: absolute;
top: 25px;
right: 33px;
background-color: #e94560;
border-radius: 8px;
color: #FFF;
}
#hero h2 {
color: #FFF;
text-transform: uppercase;
margin-bottom: -2px;
border-bottom: none;
}

/* ===== Code / Dev Guide ===== */
.comment {
color: #008000;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: small;
}
.keywd {
color: #00F;
}
pb, .pb {
color: #800000;
}
.key {
width: auto;
font-family: "Courier New", Courier, monospace;
font-weight: 900;
padding: 2px 4px;
background-color: #1a1a2e;
color: #FFF;
border: 1px solid #1a1a2e;
border-radius: 4px;
font-size: small;
line-height: normal;
}
.kk {
appearance: button;
}
.op {
color: #e94560;
background-color: #f8fafc;
}
code {
color: #0f3460;
background-color: #f0f4f8;
padding: 1px 4px;
border-radius: 3px;
font-size: 0.95em;
}
#wrapper #main blockquote pre {
background-color: #f0f4f8;
margin: auto;
padding: 12px;
border: 1px solid #dde4ec;
border-radius: 4px;
font-size: large;
}

/* ===== Ad Section ===== */
#ad {
padding: 10px 3%;
clear: both;
}

/* ===== Responsive iframes (videos) ===== */
iframe {
max-width: 100%;
height: auto;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 800px) {
	#mainleft {
		width: 94%;
		float: none;
		margin: 0 3%;
	}
	#sidebar {
		width: 94%;
		float: none;
		margin: 0 3%;
	}
	
	/* Make navigation items wrap better on tablets */
	#mainnav ul {
		flex-wrap: wrap;
	}
	#mainnav li {
		flex: 1 1 auto;
		min-width: 80px;
	}
	
	/* Make tables scrollable */
	table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}

/* Mobile optimizations */
@media (max-width: 600px) {
	body {
		font-size: 15px;
	}
	
	#wrapper {
		box-shadow: none;
	}
	
	/* Stack navigation vertically on very small screens */
	#mainnav ul {
		flex-direction: column;
	}
	#mainnav li {
		flex: none;
	}
	#mainnav a {
		padding: 12px 8px;
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.05);
	}
	
	/* Make subnav scrollable horizontally */
	#subnav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	#subnav ul {
		flex-wrap: nowrap;
		min-width: min-content;
	}
	#subnav li {
		flex-shrink: 0;
	}
	
	/* Adjust heading sizes for mobile */
	h2 {
		font-size: 1.4em;
	}
	h3 {
		font-size: 1.1em;
	}
	
	/* Make images responsive */
	img {
		max-width: 100%;
		height: auto;
	}
	
	/* Adjust content margins */
	#main {
		margin: 0 2%;
	}
	#mainleft, #sidebar {
		margin: 0 2%;
		width: 96%;
	}
	
	/* Make feature list items more compact */
	.feature-list li {
		padding: 10px 12px 10px 16px;
		font-size: 0.95em;
	}
	
	/* Adjust contact info padding */
	.contact-info {
		padding: 20px;
	}
	
	/* Make tables fully scrollable on mobile */
	table {
		font-size: 0.9em;
	}
}

/* ===== Contact Form Styles ===== */
.contact-intro {
	text-align: center;
	font-size: 1.1em;
	color: #555;
	max-width: 800px;
	margin: 0 auto 40px;
	line-height: 1.6;
}

.contact-form {
	max-width: 900px;
	margin: 0 auto 40px;
	padding: 50px 60px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid #e0e7ef;
}

.form-title {
	margin: 0 0 40px 0;
	color: #1a1a2e;
	font-size: 1.8em;
	text-align: center;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f4f8;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 0;
}

.form-row .form-group {
	margin-bottom: 30px;
}

.form-group {
	margin-bottom: 30px;
}

.form-group label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #1a1a2e;
	font-size: 1.05em;
}

.required {
	color: #e94560;
	font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
	width: 100%;
	padding: 16px 18px;
	border: 2px solid #d0d7de;
	border-radius: 6px;
	font-size: 1.05em;
	font-family: inherit;
	transition: all 0.3s ease;
	box-sizing: border-box;
	background: #fafbfc;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #0f3460;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: #999;
	font-size: 0.95em;
}

.form-group textarea {
	resize: vertical;
	min-height: 160px;
	line-height: 1.6;
}

.submit-button {
	background: linear-gradient(135deg, #0f3460 0%, #1a4d7a 100%);
	color: white;
	padding: 18px 48px;
	font-size: 1.15em;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
	margin-top: 10px;
}

.submit-button:hover:not(:disabled) {
	background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(15, 52, 96, 0.4);
}

.submit-button:active:not(:disabled) {
	transform: translateY(0);
}

.submit-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.contact-info-footer {
	margin-top: 35px;
	padding-top: 30px;
	border-top: 2px solid #f0f4f8;
	text-align: center;
	color: #666;
	font-size: 0.95em;
	line-height: 1.8;
}

.contact-info-footer p {
	margin: 10px 0;
}

.contact-info-footer strong {
	color: #1a1a2e;
}

.form-message {
	padding: 0;
	margin: 0 0 30px 0;
	border-radius: 8px;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.message-icon {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: bold;
}

.message-content {
	flex: 1;
}

.message-content h4 {
	margin: 0 0 10px 0;
	font-size: 1.3em;
}

.message-content p {
	margin: 8px 0;
	line-height: 1.6;
}

.message-reference {
	font-size: 0.85em;
	font-family: monospace;
	opacity: 0.7;
	margin-top: 12px !important;
}

.form-message.success {
	background: #d4edda;
	color: #155724;
	border: 2px solid #c3e6cb;
	padding: 25px;
}

.form-message.success .message-icon {
	background: #28a745;
	color: white;
}

.form-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 2px solid #f5c6cb;
	padding: 25px;
}

.form-message.error .message-icon {
	background: #dc3545;
	color: white;
}

@media (max-width: 800px) {
	.contact-form {
		padding: 40px 30px;
		max-width: 700px;
	}
	
	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	
	.form-row .form-group {
		margin-bottom: 25px;
	}
}

@media (max-width: 600px) {
	.contact-form {
		padding: 25px 20px;
		margin: 20px 10px;
	}
	
	.form-title {
		font-size: 1.3em;
		margin-bottom: 25px;
		padding-bottom: 15px;
	}
	
	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	
	.form-row .form-group {
		margin-bottom: 20px;
	}
	
	.form-group {
		margin-bottom: 20px;
	}
	
	.form-group label {
		font-size: 1em;
		margin-bottom: 8px;
	}
	
	.form-group input[type="text"],
	.form-group input[type="email"],
	.form-group textarea {
		padding: 14px 16px;
		font-size: 1em;
	}
	
	.submit-button {
		padding: 14px;
		font-size: 1em;
	}
	
	.form-message {
		flex-direction: column;
		gap: 15px;
		padding: 20px !important;
	}
	
	.message-icon {
		align-self: center;
	}
	
	.message-content h4 {
		font-size: 1.1em;
		text-align: center;
	}
	
	.contact-info-footer {
		font-size: 0.85em;
		margin-top: 25px;
		padding-top: 20px;
	}
}

