/*==================================
  EAN Modern Style Override
  - Keep original color scheme
  - Brighter, cleaner design
==================================*/

/* ========================================
   CSS Variables
======================================== */
:root {
  /* Primary Colors - Original Green */
  --primary: #2f4540;
  --primary-dark: #263733;
  --primary-darker: #21302d;

  /* Accent */
  --accent: #4a9b8c;
  --accent-light: #5fb5a4;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9faff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-400: #a0a0a0;
  --gray-500: #888888;

  /* Text Colors */
  --text-primary: #44454f;
  --text-secondary: #888;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ========================================
   DO NOT override Header - Keep Original
======================================== */
/* Header keeps original white background style from style.css */

/* ========================================
   Navigation - subtle enhancement only
======================================== */
.navbar-default .navbar-nav li a {
  position: relative;
}

.navbar-default .navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 27px;
  right: 27px;
  height: 2px;
  background: #4d4e54;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.navbar-default .navbar-nav li a:hover::after,
.navbar-default .navbar-nav > .active > a::after {
  transform: scaleX(1);
}

/* ========================================
   Section Headers - subtle underline
======================================== */
.section-header.text-center h2,
.project-header.text-center h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header.text-center h2::after,
.project-header.text-center h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ========================================
   What We Do Section - 33/66 Layout
======================================== */
.we-do {
  padding: 80px 0 60px;
  background: var(--white);
}

.we-do .section-header h2 {
  margin-bottom: 25px;
}

.we-do .section-header h4 {
  margin-top: 10px;
}

.we-do .section-header h4 span {
  color: var(--primary);
  font-weight: 500;
}

/* Main container - 33/66 split */
.hierarchy-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Left side - Main card 33% - HIGHLIGHTED */
.main-area {
  padding-right: 15px;
  margin-bottom: 0;
}

.single-we-do-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 25px;
  transform: none;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.single-we-do-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.single-we-do-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(47, 69, 64, 0.3);
}

.single-we-do-box .we-do-img {
  padding: 15px 0;
}

.single-we-do-box .we-do-img img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.single-we-do-box .we-do-topics h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.single-we-do-box .we-do-topics h2 a {
  font-size: 18px;
  color: var(--white);
}

.single-we-do-box .we-do-comment p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 10px;
  min-height: auto;
  line-height: 1.6;
}

/* Right side - Sub cards 66% */
.sub-areas {
  padding-left: 15px;
  margin-bottom: 0;
}

.sub-grid {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
  margin: 0 -8px;
}

.sub-grid > div {
  padding: 0 8px;
  margin-bottom: 0;
}

.subsingle-we-do-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  transform: none;
}

.subsingle-we-do-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.subsingle-we-do-box .service-img {
  padding: 8px 0;
}

.subsingle-we-do-box .service-img img {
  height: 36px;
  width: auto;
}

.subsingle-we-do-box .we-do-topics h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-height: auto;
  margin-bottom: 8px;
}

.subsingle-we-do-box .we-do-topics a {
  min-height: auto;
}

.subsingle-we-do-box .we-do-comment p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0;
  min-height: auto;
  text-align: left;
}

/* ========================================
   Project Section - Hover & Link Fix
======================================== */
.project {
  padding: 100px 0;
  background: var(--gray-50);
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* Project overlay - FIXED */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 69, 64, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Project link button - FIXED */
.project-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition-fast);
  transform: scale(0.8);
  opacity: 0;
}

.project-card:hover .project-link {
  transform: scale(1);
  opacity: 1;
}

.project-link:hover {
  background: var(--primary);
  color: var(--white);
}

.project-link span {
  line-height: 1;
}

/* Project features list */
.project-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-features ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-features ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

/* ========================================
   Service Section
======================================== */
.service-single {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.service-single:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* ========================================
   Statistics Section - Keep original
======================================== */
/* Uses original style.css styling */

/* ========================================
   Equipment Section - Keep original
======================================== */
.single-equipment-box {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.single-equipment-box:hover {
  transform: translateY(-5px);
}

/* ========================================
   Contact Section - Keep original
======================================== */
/* Uses original style.css styling */

/* ========================================
   Footer - Keep original
======================================== */
/* Uses original style.css styling */

/* ========================================
   Buttons Enhancement
======================================== */
.project-view {
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.project-view:hover {
  transform: translateY(-2px);
}

/* ========================================
   Back to Top
======================================== */
#scroll-Top .return-to-top {
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

#scroll-Top .return-to-top:hover {
  transform: translateY(-3px);
}

/* ========================================
   About Page Banner
======================================== */
.about-us-img {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 991px) {
  .hierarchy-container {
    display: block;
  }

  .main-area,
  .sub-areas {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .main-area {
    margin-bottom: 20px;
  }

  .single-we-do-box {
    margin-bottom: 0;
    min-height: auto;
  }

  .sub-grid > div {
    margin-bottom: 15px;
  }

  .sub-grid > .col-sm-12 .subsingle-we-do-box {
    flex-direction: column;
    text-align: center;
  }

  .sub-grid > .col-sm-12 .we-do-description {
    flex-direction: column;
  }

  .sub-grid > .col-sm-12 .we-do-info {
    flex-direction: column;
  }

  .sub-grid > .col-sm-12 .service-img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .sub-grid > .col-sm-12 .we-do-topics {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .sub-grid > .col-sm-12 .we-do-comment p {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .we-do,
  .project {
    padding: 60px 0;
  }

  .single-we-do-box .we-do-topics h2,
  .single-we-do-box .we-do-topics h2 a {
    font-size: 18px;
  }

  .sub-grid > .col-sm-6 {
    width: 100%;
  }

  .project-image img {
    height: 180px;
  }
}
