/* ============================================================
   TR Solutions Ghana Ltd — Coming Soon
   Brand: Corporate Green #4CAF50 · Slate/Charcoal #424242
   Type:  Manrope
   ============================================================ */

:root {
  --charcoal: #232323;
  --slate: #424242;
  --ivory: #f1f2ec;
  --muted: #a9aca9;
  --green: #4caf50;
  --green-deep: #2e7d32;
  --green-mint: #a5d6a7;

  --font: "Manrope", "Helvetica Neue", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1b1b1b;
  background-image: radial-gradient(ellipse 120% 100% at 50% 40%, #292929, #1b1b1b);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Background layers
   ============================================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Slideshow photographs: crossfade between slides, each drifting in scale */
.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: slow-zoom 32s ease-in-out infinite alternate;
}

.bg-photo.is-active {
  opacity: 1;
}

.bg-photo:nth-of-type(1) { object-position: center 70%; }
.bg-photo:nth-of-type(2) { object-position: center 40%; }
.bg-photo:nth-of-type(3) { object-position: center 40%; }

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Neutral darkening so the content stays readable */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 16, 0.88),
    rgba(15, 15, 16, 0.72) 45%,
    rgba(10, 10, 11, 0.9)
  );
}

/* Film grain */
.bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.07;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 45%, transparent 55%, rgba(10, 12, 10, 0.55) 100%);
}

/* ============================================================
   Content
   ============================================================ */

.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  width: 100%;
  max-width: 46rem;
  padding: 3rem 1.5rem 2rem;
}

.wrap > * {
  animation: rise 0.7s ease-out both;
}

.wrap > *:nth-child(2) { animation-delay: 0.1s; }
.wrap > *:nth-child(3) { animation-delay: 0.18s; }
.wrap > *:nth-child(4) { animation-delay: 0.26s; }
.wrap > *:nth-child(5) { animation-delay: 0.34s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  height: 56px;
  width: auto;
  max-width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--green);
}

.headline {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.rule {
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}

.contact {
  color: var(--muted);
}

.contact a {
  white-space: nowrap;
  color: var(--ivory);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 242, 236, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: rgba(169, 172, 169, 0.75);
}

/* ============================================================
   Focus, small screens, reduced motion
   ============================================================ */

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  /* Keep the workers in frame when narrow screens crop the sides */
  .bg-photo:nth-of-type(1) { object-position: 30% 70%; }
  .bg-photo:nth-of-type(2) { object-position: 45% 40%; }
  .bg-photo:nth-of-type(3) { object-position: 55% 40%; }
}

@media (max-width: 480px) {
  .logo {
    height: 44px;
  }

  .wrap {
    gap: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wrap > *,
  .bg-photo {
    animation: none;
  }
}
