/*
Theme Name: KPUL
Description: Lightweight, Elementor-ready theme for Krishna Power Utilities Limited (KPUL). It supplies the top bar, header, menu and footer; every page body is built and edited in Elementor.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kpul
*/

:root {
	--kpul-accent: #242f9b;
	--kpul-green: #6dab3c;
	--kpul-topbar-bg: #242f9b;
	--kpul-topbar-text: #ffffff;
	--kpul-header-bg: #ffffff;
	--kpul-header-text: #222222;
	--kpul-footer-bg: #1b1b1b;
	--kpul-footer-text: #c9c9c9;
	--kpul-text: #555555;
	--kpul-heading: #222222;
	--kpul-light: #f4f4f4;
	--kpul-width: 1140px;
}

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--kpul-text);
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.25;
	color: var(--kpul-heading);
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 14px; }
p { margin: 0 0 1.2em; }
a { color: var(--kpul-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
hr { border: 0; border-top: 1px solid #e3e3e3; margin: 1.5em 0; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.kpul-skip:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 1000;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #ffffff;
	color: var(--kpul-accent);
}
.kpul-wrap {
	width: 100%;
	max-width: var(--kpul-width);
	margin: 0 auto;
	padding: 0 16px;
}

/* Top bar ------------------------------------------------------------- */
.kpul-topbar {
	background: var(--kpul-topbar-bg);
	color: var(--kpul-topbar-text);
	font-size: 14px;
	line-height: 35px;
	min-height: 35px;
}
.kpul-topbar a { color: inherit; }
.kpul-topbar__phone::before {
	content: "";
	display: inline-block;
	width: 13px; height: 13px;
	margin-right: 8px;
	vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Header -------------------------------------------------------------- */
.kpul-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--kpul-header-bg);
	color: var(--kpul-header-text);
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}
.admin-bar .kpul-header { top: 32px; }
.kpul-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
}
.kpul-logo { flex: 0 0 auto; line-height: 0; }
.kpul-logo img { display: block; width: auto; max-height: 56px; }
.kpul-logo__text {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--kpul-header-text);
}
.kpul-logo__text:hover { text-decoration: none; }
.kpul-nav ul { list-style: none; margin: 0; padding: 0; }
.kpul-nav > ul { display: flex; flex-wrap: wrap; gap: 4px; }
.kpul-nav li { position: relative; }
.kpul-nav a {
	display: block;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--kpul-header-text);
	transition: background-color 0.2s, color 0.2s;
}
.kpul-nav a:hover,
.kpul-nav a:focus,
.kpul-nav .current-menu-item > a,
.kpul-nav .current_page_item > a,
.kpul-nav .current-menu-ancestor > a {
	background: var(--kpul-accent);
	color: #ffffff;
	text-decoration: none;
}
.kpul-nav ul ul {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 220px;
	background: var(--kpul-header-bg);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.kpul-nav li:hover > ul,
.kpul-nav li:focus-within > ul { display: block; }
.kpul-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 3px;
	background: transparent;
	color: var(--kpul-header-text);
	cursor: pointer;
}
.kpul-burger,
.kpul-burger::before,
.kpul-burger::after {
	content: "";
	display: block;
	width: 22px; height: 2px;
	margin: 0 auto;
	background: currentColor;
}
.kpul-burger { position: relative; }
.kpul-burger::before { position: absolute; top: -7px; left: 0; }
.kpul-burger::after { position: absolute; top: 7px; left: 0; }

/* Page-title band (pages that are not built with Elementor) ------------ */
.kpul-page-title {
	padding: 80px 0;
	background: var(--kpul-accent);
	text-align: center;
}
.kpul-page-title h1 {
	margin: 0;
	font-size: 60px;
	line-height: 1.15;
	color: #ffffff;
}
.kpul-content { padding: 70px 0 25px; }
.kpul-content--full { padding: 0; }
.kpul-content::after { content: ""; display: table; clear: both; }

/* Footer -------------------------------------------------------------- */
.kpul-footer {
	padding: 26px 0;
	background: var(--kpul-footer-bg);
	color: var(--kpul-footer-text);
	font-size: 14px;
	text-align: center;
}
.kpul-footer p { margin: 0; }
.kpul-footer a { color: #ffffff; }

/* Tables (tender list) ------------------------------------------------ */
.kpul-table-wrap { overflow-x: auto; }
table.kpul-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
table.kpul-table th,
table.kpul-table td {
	padding: 10px 12px;
	border: 1px solid #dddddd;
	text-align: left;
	vertical-align: top;
}
table.kpul-table thead th {
	background: #d9edf7;
	color: #222222;
	font-weight: 700;
}
table.kpul-table tbody tr:nth-child(even) td { background: #f9f9f9; }
table.kpul-table tbody tr:hover td { background: #f3f3f3; }

/* Contact Form 7 ------------------------------------------------------ */
.kpul-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kpul-form__full { grid-column: 1 / -1; }
.kpul-form p { margin: 0; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid #dcdcdc;
	border-radius: 0;
	background: #ffffff;
	font: inherit;
	color: #333333;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: var(--kpul-accent); outline: 0; }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
	margin-top: 20px;
	padding: 14px 34px;
	border: 0;
	border-radius: 0;
	background: var(--kpul-accent);
	color: #ffffff;
	font: inherit;
	font-weight: 500;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s;
}
.wpcf7 input[type="submit"]:hover { opacity: 0.88; }

/* Plain-HTML fallback layout (shown only while Elementor is switched off) */
.kpul-fb-band { padding: 80px 16px; background: var(--kpul-accent); text-align: center; }
.kpul-fb-band h1 { margin: 0; font-size: 60px; line-height: 1.15; color: #ffffff; }
.kpul-fb-sec { padding: 40px 0; }
.kpul-fb-sec--gray { background: var(--kpul-light); }
.kpul-fb-sec--flush { padding: 0; }
.kpul-fb-sec--flush img { display: block; width: 100%; }
.kpul-fb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	max-width: var(--kpul-width);
	margin: 0 auto;
	padding: 0 16px;
}
.kpul-fb-row--middle { align-items: center; }
.kpul-fb-col { flex: 1 1 0; min-width: 0; }
.kpul-fb-col--3 { flex: 0 0 calc(33.333% - 20px); }
.kpul-fb-col--wide { flex: 3 1 0; }
.kpul-fb-label { font-family: Lato, Roboto, sans-serif; font-weight: 300; font-size: 54px; line-height: 1.1; color: var(--kpul-accent); }
.kpul-fb-label--sm { font-size: 35px; color: var(--kpul-heading); }
.kpul-fb-role { font-size: 14px; font-weight: 500; color: #777777; }
.kpul-fb-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid #2a2a2a;
	color: #2a2a2a;
	font-size: 14px;
}
.kpul-fb-btn--block { display: block; text-align: center; border-radius: 5px; }
.kpul-fb-box { padding: 25px; background: var(--kpul-green); color: #ffffff; }
.kpul-fb-box hr { border-top-color: #68a13b; margin: 10px 0; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
	.kpul-nav-toggle { display: block; }
	.kpul-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--kpul-header-bg);
		box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	}
	.kpul-nav.is-open { display: block; }
	.kpul-nav > ul { display: block; }
	.kpul-nav a { padding: 14px 16px; border-top: 1px solid rgba(0, 0, 0, 0.07); }
	.kpul-nav ul ul { display: block; position: static; box-shadow: none; padding-left: 16px; }
	.kpul-header__inner { position: static; min-height: 68px; }
	.kpul-header { position: sticky; }
	.kpul-logo img { max-height: 42px; }
	.kpul-page-title, .kpul-fb-band { padding: 50px 16px; }
	.kpul-page-title h1, .kpul-fb-band h1 { font-size: 34px; }
	.kpul-content { padding: 40px 0 20px; }
	.kpul-content--full { padding: 0; }
	.kpul-fb-row { display: block; }
	.kpul-fb-col { margin-bottom: 24px; }
	.kpul-fb-label { font-size: 36px; }
	.kpul-fb-label--sm { font-size: 28px; }
	.kpul-form { grid-template-columns: 1fr; }
	h1 { font-size: 30px; }
	h2 { font-size: 24px; }
}
@media (max-width: 782px) {
	.admin-bar .kpul-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .kpul-header { top: 0; }
}
