/* ==========================================================================
   Akktia — site.css
   Single hand-written stylesheet replacing Bootstrap 3 + template CSS.
   Design tokens carried over from the original FreeHTML5 "cards" template.
   ========================================================================== */

:root {
	--blue: #1784fb;
	--blue-dark: #0477f4;
	--yellow: #fed330;
	--green: #2ecc71;
	--text: #808080;
	--heading: #4d4d4d;
	--footer-bg: #262626;
	--sans: "Open Sans", Arial, sans-serif;
	--display: "Montserrat", Arial, sans-serif;
	--serif: "Merriweather", Times, serif;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 26px;
	color: var(--text);
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); line-height: 1.3; margin: 0 0 0.6em; }
p { margin: 0 0 1.2em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ---- Glyphicons (subset; font shipped in fonts/bootstrap/) ---- */
@font-face {
	font-family: "Glyphicons Halflings";
	src: url("../fonts/bootstrap/glyphicons-halflings-regular.woff2") format("woff2"),
	     url("../fonts/bootstrap/glyphicons-halflings-regular.woff") format("woff");
	font-display: block;
}
.glyphicon {
	font-family: "Glyphicons Halflings";
	font-style: normal;
	font-weight: 400;
	display: inline-block;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}
.glyphicon-eye-open::before   { content: "\e105"; }
.glyphicon-lock::before       { content: "\e033"; }
.glyphicon-equalizer::before  { content: "\e210"; }
.glyphicon-filter::before     { content: "\e138"; }
.glyphicon-cog::before        { content: "\e019"; }
.glyphicon-knight::before     { content: "\e215"; }
.glyphicon-piggy-bank::before { content: "\e225"; }

/* ---- Buttons ---- */
.btn {
	display: inline-block;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	border-radius: 4px;
	padding: 12px 25px;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
	border: 2px solid transparent;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover, .btn-outline:focus { background: #fff; color: #333; }
.btn-lg { font-size: 14px; padding: 14px 30px; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #29b765; border-color: #29b765; color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---- Navigation (transparent, over hero) ---- */
.site-nav {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 10;
	padding-top: 40px;
}
.site-nav .container {
	display: flex;
	align-items: center;
	gap: 24px;
}
.site-nav .brand {
	font-family: var(--display);
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}
.site-nav .nav-links {
	display: flex;
	flex: 1;
	justify-content: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav .nav-links a {
	color: rgba(255, 255, 255, 0.5);
	padding: 10px 0;
	transition: color .2s;
}
.site-nav .nav-links a:hover { color: #fff; }

/* login dropdown (pure CSS via <details>) */
.login-box { position: relative; margin-left: auto; }
.login-box summary {
	list-style: none;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.5);
	transition: color .2s;
}
.login-box summary::-webkit-details-marker { display: none; }
.login-box summary:hover, .login-box[open] summary { color: #fff; }
.login-box .login-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	width: 280px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	padding: 20px;
	z-index: 20;
}
.login-panel input[type="email"], .login-panel input[type="password"] {
	width: 100%;
	font: inherit;
	font-size: 14px;
	padding: 8px 12px;
	margin-bottom: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.login-panel .remember { font-size: 13px; color: var(--text); display: block; margin-bottom: 12px; }

/* mobile nav */
.nav-toggle { display: none; }
@media (max-width: 768px) {
	.site-nav { padding-top: 20px; }
	.site-nav .nav-links { display: none; }
	.nav-toggle { display: block; position: relative; }
	.nav-toggle summary { list-style: none; cursor: pointer; color: #fff; font-size: 22px; padding: 0 10px; }
	.nav-toggle summary::-webkit-details-marker { display: none; }
	.nav-toggle .nav-panel {
		position: absolute;
		left: 0;
		top: calc(100% + 12px);
		min-width: 200px;
		background: #fff;
		border-radius: 6px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
		padding: 10px 0;
		z-index: 20;
	}
	.nav-toggle .nav-panel a { display: block; padding: 8px 20px; color: #444; }
	.nav-toggle .nav-panel a:hover { background: #f5f5f5; }
}

/* ---- Hero cover ---- */
.hero {
	position: relative;
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}
@media (min-width: 769px) {
	.hero { background-attachment: fixed; }
}
.hero .overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 520px; margin-left: auto; }
.hero-text h1 {
	font-size: 40px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.5em;
}
.hero-text h2 {
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	color: #fff;
	margin-bottom: 2em;
}
@media (max-width: 768px) {
	.hero-text { max-width: 100%; margin: 0; padding-top: 90px; }
	.hero-text h1 { font-size: 30px; }
}

/* scroll indicator (mouse) */
.scroll-btn {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
}
.scroll-btn .mouse {
	display: block;
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 14px;
	position: relative;
}
.scroll-btn .mouse::after {
	content: "";
	position: absolute;
	top: 8px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 2px;
	animation: mouse-wheel 1.6s ease infinite;
}
@keyframes mouse-wheel {
	0% { opacity: 1; transform: translateY(0); }
	100% { opacity: 0; transform: translateY(12px); }
}

/* ---- Sections ---- */
.section { padding: 5em 0; }
.section-heading { font-size: 30px; margin-bottom: 0.5em; }
.section-intro { max-width: 640px; margin: 0 auto 3em; }

/* Solutions cards */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 3em;
}
@media (max-width: 992px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
	background: #fff;
	border-radius: 7px;
	box-shadow: 0 0 20px #dfdfdf;
	overflow: hidden;
}
.card .card-image { position: relative; }
.card .card-image .overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); }
.card .category {
	position: absolute;
	top: 10px;
	left: 15px;
	z-index: 2;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	border: 1px solid #f2f2f2;
	border-radius: 3px;
	padding: 2px 10px;
}
.card .card-text { padding: 20px; }
.card .card-text h3 { font-size: 18px; }
.card .card-text p { margin-bottom: 0; font-size: 15px; }

/* Expertise (features over fixed background) */
.features-section {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #fff;
}
@media (min-width: 769px) {
	.features-section { background-attachment: fixed; }
}
.features-section .overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.features-section .container { position: relative; z-index: 2; }
.features-section .section-heading { color: #fff; }
.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 992px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
	padding: 3em 30px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.features .feature:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 992px) {
	.feature { border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; }
	.features .feature:nth-last-child(-n+2) { border-bottom: none !important; }
}
.feature .icon { color: var(--yellow); font-size: 40px; margin-bottom: 20px; }
.feature h3 { color: #fff; font-size: 18px; }
.feature p { color: rgba(255, 255, 255, 0.75); font-size: 15px; margin: 0; }

/* ---- Footer ---- */
.site-footer {
	background: var(--footer-bg);
	color: rgba(255, 255, 255, 0.6);
	font-size: 15px;
	padding: 5em 0 3em;
}
.site-footer .footer-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-bottom: 3em;
}
@media (max-width: 992px) {
	.site-footer .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.site-footer { padding: 3em 0 2em; }
}
@media (max-width: 600px) {
	.site-footer .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 1em; }
.site-footer a { color: rgba(255, 255, 255, 0.6); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer .footer-legal {
	text-align: center;
	font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 2em;
}

/* ---- Reveal animations (elements get .in via tiny JS) ---- */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
	.reveal.in { opacity: 1; transform: none; }
}

/* ---- "Please log in first" toast ---- */
.toast {
	position: fixed;
	top: 120px;
	left: 50%;
	transform: translate(-50%, -12px);
	background: rgba(34, 34, 34, 0.96);
	color: #fff;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease;
	z-index: 100;
	white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .glyphicon { margin-right: 8px; color: var(--yellow); }

/* ==========================================================================
   Legal pages (agreements, privacy policy, ToU, FAQ)
   ========================================================================== */
.legal-nav { background: #222; padding: 1em 0; }
.legal-nav .container { display: flex; justify-content: space-between; align-items: center; }
.legal-nav a { color: #fff; }
.legal-nav .nav-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.legal-nav .nav-right > a { color: rgba(255, 255, 255, 0.6); transition: color .2s; }
.legal-nav .nav-right > a:hover { color: #fff; }
.legal-nav .login-box { margin-left: 0; }
@media (max-width: 600px) {
	.legal-nav .nav-right { gap: 14px; font-size: 14px; }
}
.legal-page { padding: 3em 0 4em; }
.legal-page .inner { max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: 32px; margin-bottom: 0.3em; }
.legal-page h2 { font-size: 20px; margin-top: 1.8em; }
.legal-page .legal-meta { color: #999; margin-bottom: 2.5em; }
.legal-footer { border-top: 1px solid #e6e6e6; margin-top: 3em; padding-top: 1.5em; font-size: 13px; }
