/*
Theme Name:   Flatsome Child - EHCIT
Theme URI:    https://elitehorizon-ict.com
Description:  Flatsome Child Theme for Elite Horizon CIT
Author:       360Analytics
Template:     flatsome
Version:      1.0.0
Text Domain:  flatsome-child
*/

/* =========================================
   BRAND COLORS
   Primary Green : #3CB54A
   Dark Charcoal : #1E1E1E
   Mid Gray      : #555555
   Light Gray    : #F5F5F5
   White         : #FFFFFF
   ========================================= */

:root {
  --ehcit-green:      #3CB54A;
  --ehcit-green-dark: #2A8A36;
  --ehcit-dark:       #1E1E1E;
  --ehcit-gray:       #555555;
  --ehcit-light:      #F5F5F5;
  --ehcit-white:      #FFFFFF;
}

/* =========================================
   TYPOGRAPHY — Google Fonts loaded in functions.php
   EN: Poppins  |  AR: Cairo
   ========================================= */

body {
  font-family: 'Poppins', 'Cairo', sans-serif;
  color: var(--ehcit-dark);
}

h1, h2, h3, h4, h5, h6,
.title, .page-title {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--ehcit-dark);
}

/* Arabic text */
[lang="ar"], .rtl, html[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
}

/* =========================================
   GLOBAL ACCENTS
   ========================================= */

a, a:visited {
  color: var(--ehcit-green);
}
a:hover {
  color: var(--ehcit-green-dark);
}

.color-green, .text-green {
  color: var(--ehcit-green) !important;
}

/* =========================================
   BUTTONS
   ========================================= */

.button,
.ux-button,
button[type="submit"],
input[type="submit"],
.woocommerce button.button {
  background-color: var(--ehcit-green) !important;
  border-color: var(--ehcit-green) !important;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.button:hover,
.ux-button:hover,
button[type="submit"]:hover {
  background-color: var(--ehcit-green-dark) !important;
  border-color: var(--ehcit-green-dark) !important;
  transform: translateY(-2px);
}

.button.outline,
.ux-button.outline {
  background-color: transparent !important;
  color: var(--ehcit-green) !important;
  border: 2px solid var(--ehcit-green) !important;
}

.button.outline:hover {
  background-color: var(--ehcit-green) !important;
  color: #fff !important;
}

/* =========================================
   HEADER
   ========================================= */

#header {
  background: var(--ehcit-white) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#header .header-inner {
  padding: 12px 0;
}

.nav > li > a {
  color: var(--ehcit-dark) !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav > li > a:hover,
.nav > li.active > a {
  color: var(--ehcit-green) !important;
}

.nav > li > ul {
  border-top: 3px solid var(--ehcit-green);
}

/* Language switcher */
.header-lang-switcher a {
  font-weight: 700;
  font-size: 13px;
}

/* =========================================
   HERO / BANNER SECTIONS
   ========================================= */

.ehcit-hero {
  background: linear-gradient(135deg, #0D1B0F 0%, #1A2E1C 60%, #0D1B0F 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.ehcit-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

.ehcit-hero .hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin: 1.5rem 0 2.5rem;
}

.ehcit-hero .green-accent {
  color: var(--ehcit-green);
}

/* =========================================
   SECTION HEADINGS
   ========================================= */

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ehcit-dark);
  margin-bottom: 12px;
}

.section-heading h2 span {
  color: var(--ehcit-green);
}

.section-heading .divider {
  width: 60px;
  height: 4px;
  background: var(--ehcit-green);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-heading p {
  color: var(--ehcit-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================
   SERVICE CARDS
   ========================================= */

.ehcit-service-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 28px;
  border: 1px solid #E8E8E8;
  transition: all 0.3s ease;
  height: 100%;
}

.ehcit-service-card:hover {
  border-color: var(--ehcit-green);
  box-shadow: 0 12px 40px rgba(60, 181, 74, 0.15);
  transform: translateY(-6px);
}

.ehcit-service-card .icon {
  width: 60px;
  height: 60px;
  background: rgba(60, 181, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: var(--ehcit-green);
}

.ehcit-service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ehcit-dark);
}

.ehcit-service-card p {
  color: var(--ehcit-gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* =========================================
   WHY CHOOSE US — CHECKMARKS
   ========================================= */

.ehcit-why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.ehcit-why-item .check {
  width: 36px;
  height: 36px;
  background: var(--ehcit-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 16px;
}

.ehcit-why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ehcit-dark);
}

.ehcit-why-item p {
  color: var(--ehcit-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   STATS BAR
   ========================================= */

.ehcit-stats {
  background: var(--ehcit-green);
  padding: 50px 0;
}

.ehcit-stat-item {
  text-align: center;
  color: #fff;
}

.ehcit-stat-item .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  display: block;
}

.ehcit-stat-item .label {
  font-size: 0.9rem;
  margin-top: 8px;
  opacity: 0.9;
  font-weight: 500;
}

/* =========================================
   PARTNERS & CLIENTS LOGOS
   ========================================= */

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 40px;
}

.logo-grid img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: all 0.3s ease;
}

.logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================================
   CONTACT SECTION
   ========================================= */

.ehcit-contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.ehcit-contact-info .info-icon {
  width: 44px;
  height: 44px;
  background: rgba(60, 181, 74, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ehcit-green);
  font-size: 18px;
  flex-shrink: 0;
}

.ehcit-contact-info p {
  margin: 0;
  color: var(--ehcit-gray);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ehcit-contact-info strong {
  color: var(--ehcit-dark);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* Contact Form */
.ehcit-form input,
.ehcit-form textarea,
.ehcit-form select,
.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #E0E0E0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ehcit-dark);
  background: #fff;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.ehcit-form input:focus,
.ehcit-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--ehcit-green);
  outline: none;
}

/* =========================================
   DARK SECTION
   ========================================= */

.bg-dark-ehcit {
  background: var(--ehcit-dark);
  color: #fff;
}

.bg-dark-ehcit h2, .bg-dark-ehcit h3, .bg-dark-ehcit h4 {
  color: #fff;
}

.bg-dark-ehcit p {
  color: rgba(255,255,255,0.75);
}

/* =========================================
   FOOTER
   ========================================= */

#footer {
  background: #111 !important;
}

#footer .footer-top {
  background: #1A1A1A !important;
  padding: 60px 0 40px;
}

#footer .footer-bottom {
  background: #111 !important;
  border-top: 1px solid rgba(255,255,255,0.08);
}

#footer h3, #footer .widget-title {
  color: var(--ehcit-green) !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

#footer p, #footer li, #footer a {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.9rem;
}

#footer a:hover {
  color: var(--ehcit-green) !important;
}

#footer .footer-bottom p {
  color: rgba(255,255,255,0.4) !important;
  font-size: 0.85rem;
}

/* Footer logo */
.footer-logo img {
  max-height: 70px;
  filter: brightness(0) invert(1);
}

/* =========================================
   RTL SUPPORT (Arabic)
   ========================================= */

html[dir="rtl"] .ehcit-why-item,
html[dir="rtl"] .ehcit-contact-info .info-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .section-heading {
  text-align: center;
}

html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}

/* =========================================
   UTILITY
   ========================================= */

.section-pad {
  padding: 80px 0;
}

.section-pad-sm {
  padding: 50px 0;
}

.bg-light-ehcit {
  background: var(--ehcit-light);
}

.rounded-img img {
  border-radius: 12px;
}

/* Divider accent line */
.green-line {
  display: block;
  width: 50px;
  height: 4px;
  background: var(--ehcit-green);
  border-radius: 2px;
  margin: 14px 0 20px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
  .ehcit-hero {
    min-height: 60vh;
    text-align: center;
  }
  .section-pad {
    padding: 50px 0;
  }
  .ehcit-service-card {
    margin-bottom: 20px;
  }
}
