/* =============================================================
   HOME — front-page.php only
   Includes: hero, clients, services grid, features, stats,
             process, testimonials, CTA, project cards
   ============================================================= */

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  background:
    radial-gradient(ellipse 65% 55% at 82% 44%, rgba(45,158,68,.18) 0%, transparent 62%),
    radial-gradient(ellipse 45% 65% at 6% 90%,  rgba(6,12,44,.85)  0%, transparent 55%),
    linear-gradient(150deg, #1e3a7b 0%, #142a5e 48%, #081428 100%);
  padding: 110px 0 120px; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, black 20%, transparent 100%);
  mask-image:         radial-gradient(ellipse 75% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.hero-section::after {
  content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  left: 75%; top: 50%; transform: translate(-50%,-50%);
  background: rgba(61,191,86,.55); box-shadow: 0 0 14px 5px rgba(61,191,86,.18);
  pointer-events: none; z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }

.hero-grid  { display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  font-size: .78rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero-title           { font-size: 2.6rem; font-weight: 900; color: #fff; line-height: 1.18; margin-bottom: 16px; }
.hero-title .highlight { color: var(--green-light); display: block; }
.hero-sub   { color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.7; margin-bottom: 28px; max-width: 480px; }
.hero-btns  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats    { display: flex; gap: 0; background: rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.hero-stat     { flex: 1; text-align: center; padding: 16px 12px; border-right: 1px solid rgba(255,255,255,.1); }
.hero-stat:last-child { border-right: none; }
.hero-stat-val { font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.65); margin-top: 3px; }

/* Hero visual */
.hero-visual      { position: relative; }
.hero-visual-card { background: rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.hero-img-wrap    { height: 260px; background: rgba(255,255,255,.05); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder     { color: rgba(255,255,255,.25); font-size: .85rem; text-align: center; }
.hero-img-placeholder svg { margin: 0 auto 8px; width: 48px; height: 48px; }
.hero-cards-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.1); }
.hero-mini-card   { background: rgba(255,255,255,.06); padding: 12px 16px; }
.hero-mini-card .name { font-size: .82rem; font-weight: 700; color: #fff; }
.hero-mini-card .loc  { font-size: .72rem; color: rgba(255,255,255,.55); }

/* ── Clients bar ────────────────────────────────────────────── */
.clients-bar    { background: #fff; padding: 24px 0; border-bottom: 1px solid var(--border); }
.clients-label  { font-size: .72rem; font-weight: 700; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; text-align: center; }
.clients-logos  { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: center; align-items: center; }
.clients-logos span { font-size: .85rem; font-weight: 700; color: var(--text-3); opacity: .55; transition: opacity var(--transition); }
.clients-logos span:hover { opacity: 1; }

/* ── Services grid (homepage variants) ─────────────────────── */
.services-hp-grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.services-hp-3grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Features grid ──────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-icon { width: 64px; height: 64px; border-radius: 14px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.feat-icon svg { width: 30px; height: 30px; }
.feat-title { font-size: 1rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.feat-desc  { font-size: .85rem; color: var(--text-2); line-height: 1.6; }

/* ── Stats section ──────────────────────────────────────────── */
.stats-section { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); padding: 56px 0; }
.stats-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item     { text-align: center; padding: 28px 16px; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-icon     { width: 52px; height: 52px; background: rgba(255,255,255,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.stat-icon svg { width: 26px; height: 26px; color: var(--green-light); }
.stat-number   { font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-number span.plus { color: var(--green-light); }
.stat-label    { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 5px; }

/* ── Process (horizontal 5-step) ────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: start;
}
.process-step  { position: relative; text-align: center; padding: 0 12px; }
.step-num-wrap {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2.5px solid var(--green); background: #fff; margin: 0 auto 14px;
}
.step-num       { font-size: 1rem; font-weight: 900; color: var(--green); }
.step-connector {
  position: absolute; top: 27px; left: calc(50% + 28px); right: calc(-50% + 28px);
  height: 2px; background: linear-gradient(90deg, var(--green) 0%, rgba(45,158,68,.25) 100%); z-index: 0;
}
.step-title { font-size: .88rem; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.step-desc  { font-size: .78rem; color: var(--text-2); line-height: 1.5; }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.testi-card        { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.testi-stars       { display: flex; gap: 2px; margin-bottom: 12px; }
.testi-stars svg   { width: 16px; height: 16px; color: #F59E0B; fill: #F59E0B; }
.testi-text        { font-size: .9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testi-author      { display: flex; align-items: center; gap: 12px; }
.testi-avatar      { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.testi-avatar img  { width: 100%; height: 100%; object-fit: cover; }
.testi-name        { font-size: .9rem; font-weight: 700; }
.testi-role        { font-size: .78rem; color: var(--text-3); }

/* ── CTA section ────────────────────────────────────────────── */
.cta-section    { background: #1E3A7B; padding: 56px 0; text-align: center; }
.cta-section h2 { font-size: 2rem; font-weight: 900; color: #fff !important; margin-bottom: 10px; }
.cta-section p  { color: rgba(255,255,255,.8) !important; margin-bottom: 28px; font-size: 1rem; }
.cta-btns       { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-inline     { background: var(--off-white); border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 48px 0; }
.cta-inline-text h3  { font-size: 1.1rem; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.cta-inline-text p   { font-size: .875rem; color: var(--text-2); }
.cta-inline-actions  { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Link colors in sections ────────────────────────────────── */
p a, li a, td a, blockquote a,
.entry-content a, .feat-desc a, .step-desc a,
.section-sub a { color: var(--green); transition: color .2s; }
p a:hover, li a:hover, td a:hover, blockquote a:hover,
.entry-content a:hover, .feat-desc a:hover, .step-desc a:hover,
.section-sub a:hover { color: var(--blue); }
.hero-section a:not(.btn),
.cta-section a:not(.btn),
.stats-section a:not(.btn) { color: rgba(255,255,255,.85); }
.hero-section a:not(.btn):hover,
.cta-section a:not(.btn):hover,
.stats-section a:not(.btn):hover { color: #fff; }

/* ── Home responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid    { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual  { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .process-step:nth-child(3n) .step-connector { display: none; }
}
@media (max-width: 768px) {
  .hero-title         { font-size: 1.9rem; }
  .section-title      { font-size: 1.5rem; }
  .services-hp-grid   { grid-template-columns: 1fr; }
  .services-hp-3grid  { grid-template-columns: 1fr; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .features-grid      { grid-template-columns: 1fr; }
  .cta-inline         { flex-direction: column; }
  .hero-stats         { flex-wrap: wrap; }
  .hero-stat          { min-width: 50%; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step {
    display: flex; gap: 16px; text-align: left; align-items: flex-start;
    padding: 16px 0; border-bottom: 1px solid var(--border);
  }
  .process-step:last-child { border: none; }
  .step-connector { display: none !important; }
  .step-num-wrap  { flex-shrink: 0; margin: 0; width: 44px; height: 44px; }
  .step-num { font-size: .85rem; }
  .step-title { margin-bottom: 4px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-btns  { flex-direction: column; }
  .btn-lg     { padding: 12px 22px; }
}
