/* Energy GHP design system */
:root {
  --eg-primary: #2D4911;
  --eg-primary-dark: #1a2d0a;
  --eg-primary-light: #549700;
  --eg-accent: #579C00;
  --eg-green-soft: #C5F0BB;
  --eg-green-bg: #e8f5d8;
  --eg-dark: #142914;
  --eg-text: #2d2d2d;
  --eg-text-light: #6b7280;
  --eg-bg: #f5f7f2;
  --eg-white: #ffffff;
  --eg-radius: 20px;
  --eg-radius-sm: 12px;
}

body {
  font-family: 'Vazirmatn', sans-serif !important;
  background: var(--eg-bg);
  color: var(--eg-text);
  line-height: 1.9;
}

html { scroll-behavior: smooth; }

.elementor-widget-text-editor,
.elementor-widget-heading,
.elementor-widget-button,
.elementor-widget-nav-menu,
.elementor-button,
.elementor-widget:not(.elementor-widget-heading) h1,
.elementor-widget:not(.elementor-widget-heading) h2,
.elementor-widget:not(.elementor-widget-heading) h3 {
  font-family: 'Vazirmatn', sans-serif;
}

/* Sticky header treatment */
.eg-header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.eg-header.elementor-sticky--effects {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 24px rgba(45, 73, 17, 0.10);
}
.eg-header .elementor-widget-nav-menu .elementor-nav-menu a {
  font-weight: 500;
  border-radius: 50px;
  padding: 8px 16px !important;
  transition: all 0.3s ease;
}
.eg-header .elementor-widget-nav-menu .elementor-nav-menu a:hover,
.eg-header .elementor-widget-nav-menu .elementor-nav-menu li.current-menu-item > a,
.eg-header .elementor-widget-nav-menu .elementor-nav-menu li.current_page_item > a {
  background: var(--eg-primary);
  color: #fff !important;
}

/* Hero */
.eg-hero {
  position: relative;
  overflow: hidden;
}
.eg-hero-overlay {
  background: linear-gradient(135deg, rgba(26, 45, 10, 0.82), rgba(45, 73, 17, 0.55), rgba(0, 0, 0, 0.35));
}
.eg-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #d4edc9;
  padding: 6px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.eg-hero .elementor-heading-title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: eg-hero-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.10s;
}
.eg-hero .eg-hero-badge { animation: eg-hero-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.05s; }
.eg-hero > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget:nth-child(3),
.eg-hero .elementor-widget-text-editor { animation: eg-hero-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.18s; }
.eg-hero .elementor-element.elementor-widget-button { animation: eg-hero-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.28s; }
@keyframes eg-hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section label (pill) + titles */
.eg-head-label {
  display: inline-block;
  background: rgba(84, 151, 0, 0.10);
  color: #2D4911 !important;
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.eg-head-label-light {
  background: rgba(255, 255, 255, 0.14);
  color: #C5F0BB !important;
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.eg-hero .eg-head-label {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.eg-head-sub {
  color: #6b7280;
}

/* Buttons */
.eg-btn-primary .elementor-button {
  border-radius: 50px;
  padding: 15px 34px;
  font-weight: 600;
}
.eg-btn-outline .elementor-button {
  border-radius: 50px;
  border: 1.5px solid #fff;
  padding: 15px 34px;
  font-weight: 600;
  background: transparent;
  color: #fff;
}

/* ============================================================
   Apple-style glass design system (homepage)
   ============================================================ */
/* Ambient blurred color blobs behind glass sections */
.eg-ambient { position: relative; overflow: hidden; }
.eg-ambient::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 151, 0, 0.20), transparent 70%);
  top: -160px; left: -160px;
  filter: blur(50px);
  pointer-events: none;
}
.eg-ambient::after {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 240, 187, 0.55), transparent 70%);
  bottom: -140px; right: -140px;
  filter: blur(60px);
  pointer-events: none;
}

/* Generic column-level glass card */
.eg-card > .elementor-widget-wrap {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 34px 30px !important;
  box-shadow: 0 14px 46px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.90);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  min-height: 100%;
}
.eg-card:hover > .elementor-widget-wrap {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(31, 38, 135, 0.14);
  border-color: rgba(45, 73, 17, 0.28);
}

/* Service cards */
.eg-service > .elementor-widget-wrap {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  padding: 46px 28px 40px !important;
  box-shadow: 0 14px 46px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.90);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  min-height: 100%;
  text-align: center;
}
.eg-service:hover > .elementor-widget-wrap {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(31, 38, 135, 0.14);
  border-color: rgba(45, 73, 17, 0.28);
}
.eg-service .elementor-icon-box-wrapper { display: block; }
.eg-service .elementor-icon-box-icon {
  margin: 0 auto 26px;
  width: 78px; height: 78px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #579C00, #2D4911);
  box-shadow: 0 14px 30px rgba(45, 73, 17, 0.28);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.eg-service .elementor-icon-box-icon .elementor-icon { color: #fff !important; }
.eg-service:hover .elementor-icon-box-icon {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 22px 40px rgba(45, 73, 17, 0.35);
}
.eg-service .elementor-icon-box-title { margin-top: 0; }
.eg-service .elementor-icon-box-description { margin-top: 12px; }

/* Stat cards */
.eg-stat-card > .elementor-widget-wrap {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  padding: 30px 16px !important;
  box-shadow: 0 14px 46px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.90);
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  min-height: 100%;
}
.eg-stat-card:hover > .elementor-widget-wrap { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(31, 38, 135, 0.13); }
.eg-stat-card .elementor-counter { display: flex; flex-direction: column; }
.eg-stat-card .elementor-counter-number-wrapper { font-size: 40px !important; }
.eg-stat-card .elementor-counter-title { margin-top: 6px; }

/* About: 5-across stats (col-20) responsive */
.eg-stats5 .elementor-column { transition: transform 0.35s ease, box-shadow 0.35s ease; }
@media (max-width: 1024px) {
  .eg-stats5 .elementor-column { width: 33.333% !important; }
}
@media (max-width: 767px) {
  .eg-stats5 .elementor-column { width: 50% !important; }
}

/* Post cards */
.eg-post-card > .elementor-widget-wrap { border-radius: 28px; padding: 30px 26px !important; }
.eg-post-card .eg-post-meta { font-size: 0.82rem; color: #6b7280; margin: 6px 0 4px; }
.eg-post-card .eg-post-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  color: #579C00; font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.eg-post-card .eg-post-link:hover { color: #2D4911; }
.eg-post-card .eg-post-img { border-radius: 18px; overflow: hidden; margin-bottom: 6px; }
.eg-post-card .eg-post-img img { width: 100%; height: 170px; object-fit: cover; }
.eg-post-card .eg-post-img .eg-ph {
  height: 170px;
  border-radius: 18px;
  background: linear-gradient(135deg, #C5F0BB, #579C00);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff;
}

/* Region cards */
.eg-region > .elementor-widget-wrap { padding: 34px 28px !important; }
.eg-region .eg-region-icon {
  width: 62px; height: 62px; border-radius: 18px;
  background: rgba(84, 151, 0, 0.12);
  color: #2D4911;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.eg-region .eg-region-chip {
  display: inline-block;
  background: rgba(84, 151, 0, 0.10);
  color: #2D4911;
  border: 1px solid rgba(84, 151, 0, 0.18);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 16px;
}

/* Dark frosted glass (vision panel) */
.eg-glass-dark > .elementor-widget-wrap {
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: center;
}
.eg-vchips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.eg-vchip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d4edc9;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* Footer */
.eg-footer { background: #12240b; }
.eg-footer .elementor-heading-title { color: #fff; }
.eg-footer a { color: rgba(255, 255, 255, 0.72); transition: color 0.3s ease; }
.eg-footer a:hover { color: var(--eg-green-soft); }

/* Contact form */
.eg-contact-form .eg-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eg-contact-form .eg-cf-group { margin-bottom: 18px; }
.eg-contact-form label { display: block; margin-bottom: 6px; color: var(--eg-dark); font-size: 0.95rem; font-weight: 600; }
.eg-contact-form label span { color: #dc2626; }
.eg-contact-form input,
.eg-contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--eg-bg);
  border: 1px solid rgba(45, 73, 17, 0.14);
  border-radius: 12px;
  color: var(--eg-text);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.eg-contact-form input:focus,
.eg-contact-form textarea:focus {
  outline: none;
  border-color: var(--eg-primary-light);
  box-shadow: 0 0 0 3px rgba(84, 151, 0, 0.1);
  background: #fff;
}
.eg-contact-form textarea { min-height: 150px; resize: vertical; }
.eg-cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--eg-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.eg-cf-submit:hover { background: var(--eg-primary-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(84, 151, 0, 0.3); }

/* Contact page */
.eg-cta-link { color: #579C00; font-weight: 700; text-decoration: none; }
.eg-cta-link:hover { color: #2D4911; text-decoration: underline; }
.eg-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 12px 20px;
  background: rgba(84, 151, 0, 0.10);
  color: #2D4911 !important;
  border-radius: 12px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.eg-cta-btn:hover { background: #579C00; color: #fff !important; transform: translateY(-2px); }
.eg-cta-btn i { color: #579C00; }
.eg-card .elementor-widget-shortcode { margin-top: 6px; }
.eg-card .eg-contact-form { margin-top: 10px; }
.eg-region .eg-cta-link { font-size: 0.95rem; }

/* Vertical spacing when cards stack (tablet/mobile) */
@media (max-width: 1024px) {
  .eg-service, .eg-card, .eg-stat-card, .eg-region, .eg-post-card { margin-bottom: 22px; }
}
@media (max-width: 767px) {
  .eg-service, .eg-card, .eg-stat-card, .eg-region, .eg-post-card { margin-bottom: 18px; }
}

/* Responsive */
@media (max-width: 1024px) {
  .eg-hero .elementor-heading-title { font-size: 40px !important; }
  .eg-stats .elementor-column { width: 50% !important; }
}
@media (max-width: 767px) {
  .eg-hero .elementor-heading-title { font-size: 30px !important; line-height: 1.4 !important; }
  .eg-hero-badge { font-size: 0.75rem; }
  .eg-stats .elementor-column { width: 100% !important; }
  .eg-service > .elementor-widget-wrap { padding: 38px 22px 34px !important; }
  .eg-card > .elementor-widget-wrap { padding: 26px 20px !important; }
}
@media (max-width: 600px) {
  .eg-contact-form .eg-cf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog listing (theme loop) — glass card grid
   ============================================================ */
.eg-blog-main { background: var(--eg-bg); }

.eg-blog-hero {
  padding: 76px 20px 48px;
  text-align: center;
  background: linear-gradient(135deg, #eef5e3, #f7f9f3);
  position: relative;
  overflow: hidden;
}
.eg-blog-hero::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 151, 0, 0.18), transparent 70%);
  top: -180px; right: -140px;
  filter: blur(50px);
}
.eg-blog-hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.eg-blog-hero-title {
  margin: 18px 0 12px;
  color: var(--eg-dark);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.4;
}
.eg-blog-hero-sub {
  margin: 0;
  color: var(--eg-text-light);
  font-size: 16px;
}

.eg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 20px;
}

.eg-post-card {
  margin: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.70);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.90);
  box-shadow: 0 14px 42px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  display: flex;
  flex-direction: column;
}
.eg-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(31, 38, 135, 0.14);
}
.eg-post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--eg-green-soft);
}
.eg-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.eg-post-card:hover .eg-post-thumb img { transform: scale(1.06); }
.eg-post-thumb .eg-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(45, 73, 17, 0.5);
  background: linear-gradient(135deg, #C5F0BB, #579C00);
}
.eg-post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.eg-post-date {
  font-size: 0.82rem;
  color: #579C00;
  font-weight: 700;
  margin-bottom: 8px;
}
.eg-post-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--eg-dark);
}
.eg-post-title a { color: inherit; text-decoration: none; }
.eg-post-title a:hover { color: var(--eg-primary-light); }
.eg-post-excerpt {
  margin: 0 0 18px;
  color: var(--eg-text-light);
  font-size: 14.5px;
  line-height: 2;
  flex: 1;
}
.eg-post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #579C00;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.eg-post-link:hover { color: var(--eg-primary); }

.eg-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 20px auto 70px;
  padding: 0 20px;
}
.eg-pagination a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(45, 73, 17, 0.16);
  background: #fff;
  color: var(--eg-primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}
.eg-pagination a:hover {
  background: var(--eg-primary);
  color: #fff;
  border-color: var(--eg-primary);
}

@media (max-width: 1024px) {
  .eg-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .eg-blog-hero-title { font-size: 28px; }
  .eg-blog-grid { grid-template-columns: 1fr; padding: 34px 16px 10px; gap: 20px; }
  .eg-post-title { font-size: 17px; }
}

/* ============================================================
   Single post (Elementor template)
   ============================================================ */
.eg-single-feat .elementor-widget-image img { border: 1px solid rgba(255, 255, 255, 0.6); }

/* Post meta row (shortcode) */
.eg-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 8px;
  color: #5a6470;
  font-size: 0.9rem;
}
.eg-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.eg-meta-item svg { color: #579C00; }

/* Content column narrower + clean typography */
.eg-single-content .elementor-widget-container {
  background: #fff;
  border: 1px solid rgba(45, 73, 17, 0.08);
  border-radius: 24px;
  padding: 44px 46px;
  box-shadow: 0 18px 55px rgba(31, 38, 135, 0.06);
  max-width: 840px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.eg-single-content p {
  margin: 0 0 1.2em;
  color: #2d2d2d;
}
.eg-single-content h1,
.eg-single-content h2,
.eg-single-content h3,
.eg-single-content h4 {
  color: var(--eg-dark);
  margin: 1.4em 0 0.6em;
}
.eg-single-content a {
  color: #579C00;
  text-decoration: underline;
}
.eg-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.eg-single-content blockquote {
  border-inline-start: 4px solid #579C00;
  background: #f1f7ea;
  padding: 16px 22px;
  border-radius: 12px;
  margin: 1.4em 0;
}

@media (max-width: 767px) {
  .eg-single-content .elementor-widget-container { padding: 26px 20px; border-radius: 18px; }
}

/* Author box refinement */
.elementor-author-box { text-align: right; }
.eg-single-bottom .elementor-widget-author-box,
.eg-single-bottom .elementor-widget-post-navigation {
  max-width: 840px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.eg-single-bottom .elementor-post-navigation {
  border-top: 1px solid rgba(45, 73, 17, 0.10);
  margin-top: 34px;
  padding-top: 26px;
}
.eg-single-bottom .elementor-post-navigation a {
  background: #fff;
  border: 1px solid rgba(45, 73, 17, 0.10);
  border-radius: 14px;
  padding: 14px 18px;
  transition: all 0.3s ease;
}
.eg-single-bottom .elementor-post-navigation a:hover {
  background: var(--eg-primary);
  border-color: var(--eg-primary);
  color: #fff;
}