:root {
	--brand: #3a5391;
	--muted: #f4f6f8;
	--accent: #28a745;
	--max-width: 1200px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px
}

@font-face {
	font-family: 'Poppins';
	src: url(../fonts/Poppins-Regular.ttf) format("truetype");
}

body {
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
	line-height: 1.6;
	color: #222
}

img {
	max-width: 100%;
	height: auto;
	display: block
}

a {
	color: inherit;
	text-decoration: none
}

/* Layout container */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0.5rem;
}

/* Header */
.topbar {
	position: fixed;
	inset: 0 0 auto 0;
	height: 64px;
	background: #fff;
	border-bottom: 2px solid rgba(58, 83, 145, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	z-index: 1100;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04)
}

.brand {
	display: flex;
	align-items: center;
	gap: .75rem
}

.brand img {
	width: 114px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover
}

.brand h1 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--brand)
}

.top-contacts {
	display: flex;
	gap: 1rem;
	align-items: center
}

.contact-item {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	color: #444
}

.contact-item svg {
	width: 18px;
	height: 18px;
	opacity: .9
}


/*  */
.header-link a.contact-us-link {
    padding: 8px 16px;
    background-color: var(--brand);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.header-link a.contact-us-link:hover {
    background-color: #2f4075; /* کمی تیره‌تر */
    transform: translateY(-2px);
}







/* HERO */
.hero {
	height: 90vh;
	min-height: 520px;
	background-image: url('../Images/closeup-high-voltage-tower-power-lines-industrial-energy.jpg');
	background-size: cover;
	background-position: left;
	position: relative;
	display: flex;
	align-items: center
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 30, 0.25), rgba(10, 10, 30, 0.45));
	mix-blend-mode: multiply
}

.hero .hero-inner {
	position: relative;
	margin-left: auto;
	margin-right: 2rem;
	max-width: 520px;
	color: #fff;
	padding: 2rem;
	border-radius: 12px;
	/* background: linear-gradient(135deg, rgba(58, 83, 145, 0.9), rgba(58, 83, 145, 0.85)); */
	/* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) */
}

.hero h2 {
	font-size: 2.2rem;
	margin-bottom: .5rem
}

.hero p {
	font-size: 1.3rem;
	opacity: .95
}

/* sitemap */
.sitemap {
	background: var(--muted);
	padding: 3.25rem 0;
	text-align: center
}

.sitemap h2 {
	font-size: 1.25rem;
	color: #333;
	margin-bottom: 1rem;
	letter-spacing: 0.06em
}

.sitemap-tree {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem
}

.node {
	background: #fff;
	padding: .7rem 1rem;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	font-weight: 600
}

.branches {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	justify-content: center;
	margin-top: .5rem
}

/* Sections */
section {
	padding: 3.25rem 0
}

.two-col {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 3rem;
}

.col-img {
	flex: 0 0 42rem
}

.col-text {
	flex: 1;
	min-width: 260px
}

.card {
	background: #fff;
	padding: 1rem;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06)
}

h2.section-title {
	font-size: 1.5rem;
	margin-bottom: .75rem
}

p.lead {
	color: #333
}

/* core services grid */
.services-grid {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap
}

#services {
	margin: 3rem auto;
}

.service {
	flex: 1 1 22%;
	min-width: 220px;
	border-radius: 12px;
	overflow: hidden;
	background: #fafafa;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
	transition: transform .35s ease, box-shadow .35s ease
}

.service:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08)
}

.service .thumb {
	height: 140px;
	overflow: hidden
}

.service .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease
}

.service:hover .thumb img {
	transform: scale(1.08)
}

.service .body {
	padding: 1rem
}

.service h3 {
	font-size: 1rem;
	margin-bottom: .5rem
}

.service p {
	font-size: .95rem;
	color: #444
}

/* infrastructure list */
#infra {
	margin: 3rem auto;
}

.infra-list {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap
}

.infra-item {
	flex: 1 1 180px;
	padding: .7rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	text-align: center
}

/* achievements */
.achievements {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap
}

.achievements .panel {
	flex: 1 1 360px;
	padding: 1rem;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06)
}

.env_panel p {
	max-width: 320px;
	text-align: left;
	color: #fff;
	margin-top: 0.6rem;
}

.achievements .panel .badge {
	display: inline-block;
	padding: .5rem 1rem;
	background: var(--brand);
	color: #fff;
	border-radius: 8px;
	margin-top: .5rem
}

.badge {
	width: 100%;
}

/* environmental with overlay */
.env {
	min-height: 60vh;
	background-image: url('../Images/enviromental.jpg');
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-evenly;
	padding: 3rem 1rem
}

.env::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(6, 18, 40, 0.45);
	z-index: 0
}

.env .panel {
	position: relative;
	z-index: 1;
	background: transparent;
	color: #fff;
	max-width: 520px
}

/* floating contact (mobile) */
.floating-contact {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	background: #9a9a9a94;
	padding: .1rem;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0rem;
	/* align-items: center; */
	z-index: 1200;
	font-size: 0.7rem;
	width: max-content;
	color: #ffffff;
}

.floating-contact a {
	display: flex;
	gap: .5rem;
	align-items: center;
	padding: .1rem .3rem;
	border-radius: 8px
}

.phone_icon,
.gmail_icon,
.location_icon {
	width: 1rem;
	height: 1rem;
}

footer {
	padding: 2rem 0;
	text-align: center;
	color: #666;
	font-size: .95rem
}























/* Responsive breakpoints */
@media (max-width:1200px) {
	.col-img {
		flex-basis: 320px
	}

	.hero .hero-inner {
		margin-right: 1rem
	}

	.top-contacts,
	.brand {
		gap: 0.5rem;
	}

	.contact-item {
		font-size: 0.8rem;
	}

	.brand h1 {
		font-size: 0.9rem;
		font-weight: 700;
	}
}

@media (max-width:992px) {
	.hero {
		height: 70vh
	}

	.two-col {
		gap: 1rem
	}

	.services-grid {
		gap: .9rem
	}

	.top-contacts {
		display: none;
	}

	    .topbar .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .brand h1 {
        font-size: 0.95rem;
    }

    .header-link a.contact-us-link {
        padding: 6px 14px;
        font-size: 0.9rem;
    }


}

@media (max-width:768px) {
	.top-contacts {
		display: none
	}

	.hero {
		height: 60vh
	}

	.hero .hero-inner {
		margin: 0 auto;
		max-width: 640px
	}

	.two-col {
		flex-direction: column-reverse;
		align-items: center
	}

	.col-img,
	.col-text {
		width: 100%;
		flex-basis: auto
	}

	.service {
		flex-basis: 100%;
		max-width: 640px
	}

	.floating-contact {
		left: 50%;
		transform: translateX(-50%);
	}
	.topbar {
        height: auto;
        padding: 0.5rem 1rem;
    }

    

    .header-link {
        width: 100%;
        text-align: right;
        margin-top: 0rem;
    }

    .header-link a.contact-us-link {
        width: auto;
    }
	.brand h1{
		white-space: nowrap;
	}
}

@media (max-width:576px) {
	.brand h1 {
		font-size: .95rem
	}

	.brand {
		flex-direction: column;
		gap: .5rem;
		align-items: center;
		justify-content: space-around;
	}

	.hero h2 {
		font-size: 1.25rem
	}

	.hero p {
		font-size: .95rem
	}

	.sitemap {
		padding: 2rem 0
	}

	.branches {
		flex-direction: column;
		width: 80%;
	}

	.node {
	padding: .4rem 0.7rem;
	font-size: 13px;
	}

	.brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0rem;
    }

    .brand h1 {
        font-size: 0.85rem;
        text-align: left;
    }

	.brand img{
		width: 97px;
    	height: 40px;
	}

    .header-link {
        text-align: center;
        width: 100%;
    }
	.topbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

	.header-link a{
		font-size: 0.8rem;
	}
}