/* ============================================================
   HOME PAGE — Specific Styles (v2 — Visual depth update)
   ============================================================ */

/* ============================================================
   HERO — Full-bleed photo + overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 5rem) 0 7rem;
  overflow: hidden;
  background: var(--off-black);
}

/* Photo layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

/* Dark gradient overlay — bottom-heavy so text stays readable */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17,17,17,0.88) 0%,
    rgba(17,17,17,0.72) 50%,
    rgba(17,17,17,0.45) 100%
  );
  z-index: 1;
}

/* Crimson vertical accent line */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: calc((100vw - var(--max-w)) / 2 + 2rem);
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(192,33,43,0.5) 40%, rgba(192,33,43,0.5) 60%, transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-content .label {
  display: block;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-content h1 {
  color: var(--white);
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  max-width: 520px;
  color: rgba(255,255,255,0.65);
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}

/* On dark hero, outline button needs white treatment */
.hero-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  background: var(--red);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 35s linear infinite;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  align-items: center;
}

.marquee-track .dot {
  color: rgba(255,255,255,0.4);
  font-style: normal;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--off-black);
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
  padding: 0 3rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-n {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-l {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  background: var(--off-white);
  padding: 5rem 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.intro-left .label { display: block; margin-bottom: 1.2rem; }
.intro-left h2 em { color: var(--red); }

.intro-right p + p { margin-top: 1.2rem; }

/* ============================================================
   SERVICES — Dark background
   ============================================================ */
.services-preview {
  background: var(--off-black);
  padding: 5rem 0;
}

.services-preview .section-header .label {
  color: rgba(255,255,255,0.4);
}

.services-preview .section-header h2 {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
}

.service-card {
  background: var(--off-black);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  background: #222222;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
}

.service-card h3 { color: var(--white); }

.service-card p { font-size: 0.95rem; color: rgba(255,255,255,0.55); }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.service-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.75rem;
}

.service-arrow {
  font-size: 1.4rem;
  color: var(--red);
  margin-top: auto;
  transition: transform var(--transition);
  display: inline-block;
}

.service-card:hover .service-arrow {
  transform: translateX(6px);
}

/* ============================================================
   SECTORS — Image cards
   ============================================================ */
.sectors {
  background: var(--white);
  padding: 5rem 0;
}

.sectors .section-header .label { display: block; margin-bottom: 1.2rem; }
.sectors .section-header h2 em { color: var(--red); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.sector-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sector-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}

.sector-item:hover .sector-img {
  transform: scale(1.04);
}

/* Dark overlay gradient */
.sector-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,17,17,0.9) 0%,
    rgba(17,17,17,0.5) 50%,
    rgba(17,17,17,0.15) 100%
  );
  z-index: 1;
}

.sector-body {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.sector-body h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.sector-body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.sector-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

/* ============================================================
   WHY TENSIGHT — Dark
   ============================================================ */
.why {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: #161616;
}

/* Subtle texture */
.why-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(192,33,43,0.06) 0%, transparent 60%);
}

.why-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.why-left h2 { color: var(--white); }
.why-left h2 em { color: var(--red); }

.why-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.why-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.why-num {
  color: var(--red);
  font-size: 1.2rem;
  padding-top: 0.1rem;
}

.why-item h4 { margin-bottom: 0.4rem; font-size: 0.95rem; color: var(--white); }
.why-item p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   CTA STRIP — Crimson
   ============================================================ */
.cta-strip {
  background: var(--red);
  padding: 4.5rem 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-inner .label {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.cta-inner h2 {
  color: var(--white);
}

.cta-inner h2 em {
  font-style: italic;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons on red background */
.cta-strip .btn-primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.cta-strip .btn-primary:hover {
  background: var(--off-black);
  color: var(--white);
  border-color: var(--off-black);
}

.cta-strip .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.cta-strip .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 0 2rem; }
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; border-left: none; }
  .stat-item { padding: 1.5rem 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .why-content { grid-template-columns: 1fr; gap: 3rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-item { aspect-ratio: 4/3; }
}
