:root {
  --green: #2d7a3a;
  --green-light: #e8f5ea;
  --green-mid: #4caf65;
  --dark: #1a1a2e;
  --gray: #64748b;
  --light-bg: #f8fafb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Global ── */
.home-wrap * { box-sizing: border-box; }
.home-wrap { font-family: 'Inter', 'Segoe UI', sans-serif; color: var(--dark); }

.home-section { padding: 80px 0; }
.home-section:nth-child(even) { background: var(--light-bg); }

.home-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Label ── */
.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── Headings ── */
.home-h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 20px;
}
.home-h2 span { color: var(--green); }

/* ── Body text ── */
.home-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 24px;
}

/* ── Layout two-col ── */
.home-wrap .two-col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 60px;
  align-items: center;
}
.home-wrap .two-col.reverse { direction: rtl; }
.home-wrap .two-col.reverse > * { direction: ltr; }

/* ── Image ── */
.home-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.home-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.home-img-wrap:hover img { transform: scale(1.03); }

/* ── Tag list ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.tag-list li {
  background: var(--white);
  border: 1.5px solid #d1e8d5;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(45,122,58,0.07);
}

/* ── Check list ── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--gray);
  padding: 10px 0;
  border-bottom: 1px solid #eef2f5;
  line-height: 1.6;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  min-width: 22px;
  height: 22px;
  background: var(--green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232d7a3a'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Cards grid ── */
.home-wrap .cards-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px;
  margin-top: 8px;
}

.project-card {
  background: var(--white);
  border: 1px solid #e8edf0;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: 0 6px 20px rgba(45,122,58,0.12);
  transform: translateY(-2px);
}
.project-card-icon {
  width: 38px;
  height: 38px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* ── Steps ── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.steps-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f5;
}
.steps-list li:last-child { border-bottom: none; }
.step-num {
  min-width: 36px;
  height: 36px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  padding-top: 6px;
}

/* ── Intl card ── */
.intl-card {
  background: linear-gradient(135deg, var(--green) 0%, #1a5c28 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: white;
  margin-top: 8px;
}
.intl-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: white;
}
.intl-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.7;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--green-light); }
.faq-arrow {
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }

/* ── Audit highlight ── */
.audit-highlight {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--dark);
  margin-top: 20px;
  line-height: 1.7;
}

/* ============================================
   GRID HELPERS — Portofoliu + alte pagini
   ============================================ */

.home-wrap .grid-4col {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px;
  margin-top: 40px;
}

.home-wrap .grid-2col {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px;
}

.home-wrap .grid-col-stack {
  display: flex !important;
  flex-direction: column;
  gap: 24px;
}

.home-wrap .porto-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
}

/* ── Stat card ── */
.stat-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
}
.stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Info card ── */
.info-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.info-card-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.info-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}
.info-card-count {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

/* ── Porto card ── */
.porto-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.porto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.porto-card a { text-decoration: none; }
.porto-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.porto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.porto-card:hover .porto-img img { transform: scale(1.05); }
.porto-label {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

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

@media (max-width: 768px) {
  .home-section { padding: 40px 0; }
  .home-h2 { font-size: 22px; }

  .home-wrap .two-col,
  .home-wrap .two-col.reverse {
    grid-template-columns: 1fr !important;
    direction: ltr;
    gap: 24px;
  }

  .home-wrap .grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .home-wrap .grid-2col {
    grid-template-columns: 1fr !important;
  }
  .home-wrap .porto-card-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .home-wrap .cards-grid {
    grid-template-columns: 1fr !important;
  }
  .tag-list li {
    font-size: 13px;
    padding: 6px 14px;
  }
}

@media (max-width: 480px) {
  .home-wrap .porto-card-grid {
    grid-template-columns: 1fr !important;
  }
  .home-wrap .grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
