/* =====================================================
   home.css — Homepage-only styles
   Color palette: white, grey, green (#1a7a3c), red (#c0392b)
===================================================== */

/* ── Color tokens ── */
:root {
  --hg: #1a7a3c;       /* green */
  --hg-light: #e8f5ee; /* green tint */
  --hg-dark:  #145f2e;
  --hr: #c0392b;       /* red */
  --hr-light: #fdecea;
  --hr-dark:  #962d22;
  --hgrey:    #f4f4f4;
  --hgrey2:   #e0e0e0;
  --hdark:    #1a1a1a;
  --htext:    #333;
  --hmuted:   #666;
}

/* ── Shared text accents ── */
.c-green { color: var(--hg); }
.c-red   { color: var(--hr); }

/* ── Shared buttons ── */
.hbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 2rem; border-radius: 6px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .25s ease;
  text-decoration: none; white-space: nowrap;
}
.hbtn-green  { background: var(--hg); color: #fff; border-color: var(--hg); }
.hbtn-green:hover { background: var(--hg-dark); border-color: var(--hg-dark); color: #fff; transform: translateY(-2px); }
.hbtn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hbtn-outline:hover { background: #fff; color: var(--hdark); transform: translateY(-2px); }
.hbtn-red    { background: var(--hr); color: #fff; border-color: var(--hr); }
.hbtn-red:hover { background: var(--hr-dark); color: #fff; transform: translateY(-2px); }

/* ── Labels ── */
.h-label {
  display: inline-block; font-size: .72rem; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: .6rem;
}
.h-label--green { color: var(--hg); }
.h-label--red   { color: var(--hr); }
.h-label--white { color: rgba(255,255,255,.85); }

/* =====================================================
   HERO
===================================================== */
.h-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.h-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.h-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.h-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,.82) 0%, rgba(26,122,60,.45) 100%);
}
.h-hero__inner {
  position: relative; z-index: 2;
  padding-top: 100px; padding-bottom: 4rem;
}
.h-hero__content { max-width: 680px; }
.h-badge {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3); border-radius: 50px;
  padding: .4rem 1.2rem; font-size: .82rem; color: #fff;
  font-weight: 700; margin-bottom: 1.5rem; letter-spacing: .5px;
}
.h-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff; line-height: 1.15; margin-bottom: 1.25rem;
}
.h-hero__sub {
  font-size: 1.1rem; color: rgba(255,255,255,.82);
  max-width: 560px; margin-bottom: 2rem; line-height: 1.7;
}
.h-hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.h-hero__stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.h-stat { text-align: center; }
.h-stat strong {
  display: block; font-size: 1.9rem; font-weight: 900; color: var(--hg);
  line-height: 1;
}
.h-stat span { font-size: .72rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; }
.h-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.5); font-size: 1.5rem;
  animation: bounce 2s infinite; text-decoration: none;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* =====================================================
   HIGHLIGHTS BAR
===================================================== */
.h-bar { background: #fff; border-bottom: 3px solid var(--hgrey2); }
.h-bar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.h-bar__item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--hgrey2);
  transition: background .2s;
}
.h-bar__item:last-child { border-right: none; }
.h-bar__item span { font-size: 2rem; flex-shrink: 0; }
.h-bar__item strong { display: block; font-size: .95rem; color: var(--hdark); margin-bottom: .2rem; }
.h-bar__item p { font-size: .8rem; color: var(--hmuted); margin: 0; }
.h-bar__item--green:hover { background: var(--hg-light); }
.h-bar__item--red:hover   { background: var(--hr-light); }
.h-bar__item--grey:hover  { background: var(--hgrey); }
.h-bar__item--green strong { color: var(--hg); }
.h-bar__item--red strong   { color: var(--hr); }

/* =====================================================
   SECTIONS
===================================================== */
.h-section { padding: 5rem 0; }
.h-section--white { background: #fff; }
.h-section--grey  { background: var(--hgrey); }

/* ── Split layout ── */
.h-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.h-split--rev { direction: rtl; }
.h-split--rev > * { direction: ltr; }

.h-split__img {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.h-split__img img {
  width: 100%; height: 420px; object-fit: cover; display: block;
}
.h-img-badge {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  padding: .5rem 1.1rem; border-radius: 50px;
  font-size: .82rem; font-weight: 800;
}
.h-img-badge--green { background: var(--hg); color: #fff; }
.h-img-badge--red   { background: var(--hr); color: #fff; }

.h-split__text h2 { color: var(--hdark); margin-bottom: 1rem; }
.h-split__text p  { color: var(--hmuted); margin-bottom: 1.5rem; }

/* ── Service list ── */
.h-service-list { display: flex; flex-direction: column; gap: .75rem; }
.h-svc {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; border-radius: 8px;
  border: 1px solid var(--hgrey2); background: #fff;
  text-decoration: none; transition: all .2s;
}
.h-svc:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.h-svc--green:hover { border-color: var(--hg); background: var(--hg-light); }
.h-svc--red:hover   { border-color: var(--hr); background: var(--hr-light); }
.h-svc--grey:hover  { border-color: #aaa; background: var(--hgrey); }
.h-svc__icon { font-size: 1.4rem; flex-shrink: 0; width: 2.5rem; text-align: center; }
.h-svc div   { flex: 1; }
.h-svc strong { display: block; font-size: .92rem; color: var(--hdark); }
.h-svc span   { font-size: .8rem; color: var(--hmuted); }
.h-svc__arrow { color: var(--hmuted); font-size: 1.1rem; font-weight: 700; }
.h-svc--green .h-svc__arrow { color: var(--hg); }
.h-svc--red   .h-svc__arrow { color: var(--hr); }

/* ── Why grid ── */
.h-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.h-why {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem; border-radius: 10px; border: 1px solid var(--hgrey2);
  background: #fff; transition: all .2s;
}
.h-why:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.h-why--green:hover { border-color: var(--hg); }
.h-why--red:hover   { border-color: var(--hr); }
.h-why__icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.h-why--green .h-why__icon { background: var(--hg-light); }
.h-why--red   .h-why__icon { background: var(--hr-light); }
.h-why--grey  .h-why__icon { background: var(--hgrey); }
.h-why strong { display: block; font-size: .9rem; color: var(--hdark); margin-bottom: .2rem; }
.h-why p      { font-size: .82rem; color: var(--hmuted); margin: 0; }

/* =====================================================
   TEAM — photo background
===================================================== */
.h-team { position: relative; padding: 5rem 0; overflow: hidden; }
.h-team__bg { position: absolute; inset: 0; z-index: 0; }
.h-team__bg img { width: 100%; height: 100%; object-fit: cover; }
.h-team__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,.78);
}
.h-team__inner { position: relative; z-index: 2; }
.h-team__grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 860px; margin: 0 auto; }

.h-tcard { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.h-tcard__top {
  padding: 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.h-tcard__top--green { background: linear-gradient(135deg, var(--hg), var(--hg-dark)); }
.h-tcard__top--red   { background: linear-gradient(135deg, var(--hr), var(--hr-dark)); }
.h-tcard__top h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.h-tcard__top p  { color: rgba(255,255,255,.8); font-size: .85rem; margin: 0; }
.h-tcard__photo {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.5); margin-bottom: .5rem;
}
.h-tcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.h-tcard__avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 3px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: .5rem;
}
.h-tcard__body { padding: 1.5rem; }
.h-tcard__body p { font-size: .88rem; color: var(--hmuted); margin-bottom: 1rem; }
.h-tcard__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.h-tcard__tags span {
  padding: .25rem .7rem; border-radius: 50px; font-size: .72rem; font-weight: 700;
  background: var(--hgrey); color: var(--htext); border: 1px solid var(--hgrey2);
}

/* =====================================================
   PROCESS
===================================================== */
.h-process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.h-step {
  padding: 1.75rem; border-radius: 10px; border-top: 4px solid transparent;
  background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.h-step:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.h-step--green { border-top-color: var(--hg); }
.h-step--red   { border-top-color: var(--hr); }
.h-step--grey  { border-top-color: #999; }
.h-step__num {
  font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: .75rem;
}
.h-step--green .h-step__num { color: var(--hg); }
.h-step--red   .h-step__num { color: var(--hr); }
.h-step--grey  .h-step__num { color: #999; }
.h-step h4 { font-size: 1rem; color: var(--hdark); margin-bottom: .5rem; }
.h-step p  { font-size: .85rem; color: var(--hmuted); margin: 0; }

/* =====================================================
   CTA — photo background
===================================================== */
.h-cta { position: relative; padding: 6rem 0; overflow: hidden; text-align: center; }
.h-cta__bg { position: absolute; inset: 0; z-index: 0; }
.h-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.h-cta__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,.85), rgba(26,122,60,.6));
}
.h-cta__inner { position: relative; z-index: 2; }
.h-cta__btns  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .h-bar__grid { grid-template-columns: 1fr 1fr; }
  .h-split, .h-split--rev { grid-template-columns: 1fr; direction: ltr; }
  .h-split__img { order: -1; }
  .h-split__img img { height: 300px; }
  .h-team__grid { grid-template-columns: 1fr 1fr; }
  .h-process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .h-bar__grid { grid-template-columns: 1fr 1fr; }
  .h-bar__item { padding: 1.25rem 1rem; }
  .h-hero__stats { gap: 1.5rem; }
  .h-stat strong { font-size: 1.5rem; }
  .h-why-grid { grid-template-columns: 1fr; }
  .h-team__grid { grid-template-columns: 1fr; max-width: 420px; }
  .h-process-grid { grid-template-columns: 1fr; }
  .h-hero__btns { flex-direction: column; align-items: flex-start; }
  .h-cta__btns  { flex-direction: column; align-items: center; }
  .h-cta__btns .hbtn { width: 100%; max-width: 300px; justify-content: center; }
}
@media (max-width: 480px) {
  .h-bar__grid { grid-template-columns: 1fr; }
  .h-hero__title { font-size: 2rem; }
  .h-section { padding: 3rem 0; }
  .h-team { padding: 3rem 0; }
  .h-cta { padding: 4rem 0; }
}
