/* ── HOMEPAGE MODERN OVERRIDES ── */

/* Hero — clean white */
.home-hero {
  position: relative;
  padding: 108px 32px 72px;
  overflow: hidden;
  background: var(--bg-page);
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(60,150,143,.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 5% 90%, rgba(240,165,0,.05) 0%, transparent 50%);
  pointer-events: none;
}
.home-hero-mesh { display: none; }

.home-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  letter-spacing: -1.8px;
}
.home-hero .hero-sub { max-width: 480px; font-size: 1.05rem; }

/* Single hero image */
.hero-single { position: relative; }
.hero-single-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(72, 58, 42, .12), 0 4px 16px rgba(72, 58, 42, .06);
  animation: floatMain 7s ease-in-out infinite;
}
.hero-single-frame img {
  width: 100%; height: 400px; object-fit: cover; display: block;
  transition: transform .7s ease;
}
.hero-single:hover .hero-single-frame img { transform: scale(1.03); }

/* Home hero stats — unified grid */
.home-page .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 480px;
}
.home-page .hero-stats > div {
  padding: 18px 16px;
  border-right: 1px solid var(--border);
  transition: background .25s;
}
.home-page .hero-stats > div:last-child { border-right: none; }
.home-page .hero-stats > div:hover { background: rgba(60, 150, 143, .06); }

/* Capabilities section */
.capabilities {
  padding: 80px 32px;
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--bg-page) 100%);
  position: relative;
}
.capabilities::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.capabilities-inner { max-width: 1280px; margin: 0 auto; }
.capabilities-header { text-align: center; max-width: 620px; margin: 0 auto 48px; }

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.cap-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-height: 100%;
}
.cap-visual img {
  width: 100%; height: 100%; min-height: 380px;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.cap-visual:hover img { transform: scale(1.04); }
.cap-visual-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(60,150,143,.12) 0%, transparent 50%);
}

.cap-cards { display: flex; flex-direction: column; gap: 16px; }
.cap-card {
  flex: 1;
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px 32px;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, border-color .3s;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 24px rgba(72, 58, 42, .08), 0 1px 3px rgba(72, 58, 42, .04);
}
.cap-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
}
.cap-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.cap-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
  background: var(--surface);
}
.cap-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; margin-bottom: 8px; color: var(--text-dark);
}
.cap-card p { font-size: .86rem; color: var(--text-mid); line-height: 1.65; }

.cap-card-1 {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--surface-3) 100%);
  border-color: #c8e8e5;
}
.cap-card-1::before { background: var(--brand); }

.cap-card-2 {
  background: linear-gradient(135deg, #faf3e4 0%, var(--bg-page) 100%);
  border-color: #e8d9b8;
}
.cap-card-2::before { background: var(--accent); }

.cap-card-3 {
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--bg-page) 100%);
  border-color: var(--border);
}
.cap-card-3::before { background: var(--brand-dark); }

/* Section backgrounds */
.home-page .services {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}
.home-page .why {
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--bg-page) 100%);
}
.home-page .process {
  background: var(--bg-page);
}
.home-page .testimonials {
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--bg-page) 100%);
}

/* Stats — softer */
.home-page .stats-band {
  background: linear-gradient(135deg, #2d7a73 0%, #3c968f 50%, #4aa89f 100%);
  position: relative; overflow: hidden;
}
.home-page .stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%);
  pointer-events: none;
}

/* CTA — light (no teal) */
.home-page .cta-band-light {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  padding: 72px 32px;
}
.home-page .cta-band-light::before { display: none; }
.cta-title-dark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--text-dark);
  letter-spacing: -.6px; line-height: 1.2;
}
.cta-sub-dark {
  font-size: .95rem; color: var(--text-mid);
  margin-top: 10px; line-height: 1.6;
}

/* Marquee */
.trusted-marquee {
  overflow: hidden; padding: 24px 0;
  background: var(--surface-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 28s linear infinite;
}
.trusted-marquee:hover .trusted-marquee-track { animation-play-state: paused; }
.trusted-marquee-item {
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  color: var(--text-soft); opacity: .5;
  white-space: nowrap; letter-spacing: -.2px;
  transition: color .2s, opacity .2s;
}
.trusted-marquee-item:hover { opacity: 1; color: var(--brand); }

/* Enhanced cards */
.home-page .service-card { position: relative; overflow: hidden; background: var(--surface); }
.home-page .service-card:hover { border-color: var(--brand); }
.home-page .why-compact-card {
  background: var(--surface);
  animation: fadeUp .6s ease both;
}
.home-page .why-compact-card:nth-child(2) { animation-delay: .1s; }
.home-page .why-compact-card:nth-child(3) { animation-delay: .2s; }
.home-page .why-compact-card:nth-child(4) { animation-delay: .3s; }

.home-page .process-step-circle { transition: transform .3s; }
.home-page .process-step:hover .process-step-circle { transform: scale(1.08); }

.home-page .testi-card {
  background: var(--surface);
  position: relative; overflow: hidden;
}
.home-page .testi-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.home-page .testi-card:hover::after { transform: scaleX(1); }

.home-page #backTop { background: var(--brand-dark); }

/* Animations */
@keyframes floatMain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Mobile */
@media (max-width: 1024px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-single { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-single-frame img { height: 300px; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .cap-visual img { min-height: 260px; }
}

@media (max-width: 768px) {
  .trusted-marquee { padding: 16px 0; }
  .trusted-marquee-item { font-size: .82rem; padding: 0 20px; }
}

@media (max-width: 768px) {
  .home-hero-inner { gap: 28px; }
  .hero-single { order: -1; }
  .hero-single-frame img { height: 200px; }
  .hero-single-frame { animation: none; }
}

@media (max-width: 640px) {
  .hero-single-frame img { height: 190px; }
  .home-page .cta-band-light { padding: 48px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-single-frame, .trusted-marquee-track { animation: none !important; }
}
