/*
Theme Name: Enterprise Coherence
*/

/* CSS Variables */
:root {
	--ec-primary: #0A1628;
	--ec-secondary: #1E3A5F;
	--ec-accent: #C9A84C;
	--ec-body-bg: #FFFFFF;
	--ec-body-text: #333333;
	--ec-heading-color: #0A1628;
	--ec-link-color: #C9A84C;
	--ec-link-hover: #0A1628;
	--ec-btn-bg: #C9A84C;
	--ec-btn-text: #FFFFFF;
	--ec-btn-hover-bg: #0A1628;
	--ec-btn-hover-text: #FFFFFF;
	--ec-btn-radius: 4px;
	--ec-font-heading: 'Inter', sans-serif;
	--ec-font-body: 'Lato', sans-serif;
	--ec-font-menu: 'Inter', sans-serif;
	--ec-container-width: 1200px;
}

/* Modern Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; }
html:focus-within { scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeSpeed; line-height: 1.7; font-family: var(--ec-font-body); color: var(--ec-body-text); background-color: var(--ec-body-bg); }
a:not([class]) { text-decoration-skip-ink: auto; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--ec-font-heading); color: var(--ec-heading-color); margin-bottom: 1rem; }
a { color: var(--ec-link-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--ec-link-hover); }

/* Layout container */
.ec-container {
	max-width: var(--ec-container-width);
	margin: 0 auto;
	padding: 0 15px;
}

/* Topbar */
.ec-topbar {
	background-color: var(--ec-primary);
	color: var(--ec-accent);
	font-size: 0.85rem;
	padding: 10px 0;
}
.ec-topbar .ec-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Header */
.ec-header {
	background-color: var(--ec-body-bg);
	transition: all 0.3s ease;
	position: relative;
	z-index: 999;
}
.ec-header .ec-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.ec-header.ec-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	animation: slideDown 0.5s ease-in-out;
}
@keyframes slideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/* Navigation */
.ec-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
}
.ec-nav ul li {
	position: relative;
}
.ec-nav ul li a {
	display: block;
	padding: 20px 15px;
	font-family: var(--ec-font-menu);
	color: var(--ec-heading-color);
	font-weight: 500;
}
.ec-nav ul li a:hover {
	color: var(--ec-accent);
}
/* Dropdown */
.ec-nav ul li ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--ec-primary);
	min-width: 200px;
	flex-direction: column;
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.ec-nav ul li:hover > ul.sub-menu {
	display: flex;
}
.ec-nav ul.sub-menu li a {
	color: #fff;
	padding: 15px 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ec-nav ul.sub-menu li a:hover {
	background-color: var(--ec-accent);
	color: var(--ec-primary);
}

/* Buttons */
.ec-btn, button, input[type="submit"] {
	display: inline-block;
	background-color: var(--ec-btn-bg);
	color: var(--ec-btn-text);
	padding: 12px 24px;
	border: none;
	border-radius: var(--ec-btn-radius);
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	text-align: center;
}
.ec-btn:hover, button:hover, input[type="submit"]:hover {
	background-color: var(--ec-btn-hover-bg);
	color: var(--ec-btn-hover-text);
}

/* Footer */
.ec-footer {
	position: relative;
	background-color: var(--ec-primary);
	color: #ccc;
}
.ec-footer-widgets .ec-container {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.ec-footer-grid {
	display: grid;
	gap: 30px;
	width: 100%;
}
.ec-footer-grid-1 { grid-template-columns: 1fr; }
.ec-footer-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ec-footer-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ec-footer-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
	.ec-footer-grid-4, .ec-footer-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
	.ec-footer-grid-4, .ec-footer-grid-3, .ec-footer-grid-2 { grid-template-columns: 1fr; }
}

.ec-footer-widget-title {
	color: var(--ec-accent);
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}
.ec-footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 2px;
	background-color: var(--ec-accent);
}
.ec-footer a {
	color: #aaa;
}
.ec-footer a:hover {
	color: var(--ec-accent);
}
.ec-footer-bottom {
	background-color: rgba(0,0,0,0.3);
	padding: 20px 0;
	font-size: 0.9rem;
}
.ec-footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}
.ec-footer-social {
	display: flex;
	gap: 12px;
}
.ec-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: #fff;
	transition: all 0.3s ease;
}
.ec-footer-social a:hover {
	background: var(--ec-accent);
	color: var(--ec-primary);
	transform: translateY(-2px);
}

/* Cards */
.ec-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	overflow: hidden;
	transition: all 0.3s ease;
}
.ec-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Hamburger */
.ec-hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}
.ec-hamburger span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--ec-heading-color);
	margin: 5px 0;
	transition: all 0.3s ease;
}

/* Sidebar */
.ec-sidebar-widget {
	margin-bottom: 40px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

/* Scroll Top */
.ec-scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: var(--ec-primary);
	color: var(--ec-accent);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 99;
}
.ec-scroll-top.show {
	opacity: 1;
	visibility: visible;
}

/* 404 */
.error404 main { text-align: center; padding: 100px 0; }
